diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-03-26 14:39:52 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-03-26 14:39:52 +0200 |
commit | 903ad7c94137f7c844cde03befc4ddd8e9713a3b (patch) | |
tree | d071e96b66b6f950a4010a6386e8130a5df464de /mysys | |
parent | d92009231d90cc187a89eab78bcf3ef090c5e24f (diff) | |
download | mariadb-git-903ad7c94137f7c844cde03befc4ddd8e9713a3b.tar.gz |
move DBUG_END() after my_thread_global_end(), when all threads have already died.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c index bb72d0e0426..cdd07ec6a8b 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -201,11 +201,12 @@ Voluntary context switches %ld, Involuntary context switches %ld\n", #endif } + my_thread_end(); + my_thread_global_end(); + if (!(infoflag & MY_DONT_FREE_DBUG)) DBUG_END(); /* Must be done as late as possible */ - my_thread_end(); - my_thread_global_end(); my_mutex_end(); #if defined(SAFE_MUTEX) /* |