diff options
Diffstat (limited to 'mysys/my_init.c')
-rw-r--r-- | mysys/my_init.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c index 8cf1af2f8ee..b8398465e74 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -201,11 +201,6 @@ Voluntary context switches %ld, Involuntary context switches %ld\n", #endif } - if (!(infoflag & MY_DONT_FREE_DBUG)) - { - DBUG_END(); /* Must be done before my_thread_end */ - } - my_thread_end(); my_thread_global_end(); my_mutex_end(); @@ -223,6 +218,9 @@ Voluntary context switches %ld, Involuntary context switches %ld\n", WSACleanup(); #endif /* __WIN__ */ + if (!(infoflag & MY_DONT_FREE_DBUG)) + DBUG_END(); /* Must be done as late as possible */ + my_init_done=0; } /* my_end */ |