Commit 903ad7c9 authored by Sergei Golubchik's avatar Sergei Golubchik

move DBUG_END() after my_thread_global_end(), when all threads have already died.

parent d9200923
No related merge requests found
...@@ -201,11 +201,12 @@ Voluntary context switches %ld, Involuntary context switches %ld\n", ...@@ -201,11 +201,12 @@ Voluntary context switches %ld, Involuntary context switches %ld\n",
#endif #endif
} }
my_thread_end();
my_thread_global_end();
if (!(infoflag & MY_DONT_FREE_DBUG)) if (!(infoflag & MY_DONT_FREE_DBUG))
DBUG_END(); /* Must be done as late as possible */ DBUG_END(); /* Must be done as late as possible */
my_thread_end();
my_thread_global_end();
my_mutex_end(); my_mutex_end();
#if defined(SAFE_MUTEX) #if defined(SAFE_MUTEX)
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment