Commit 1c848368 authored by Akira Higuchi's avatar Akira Higuchi Committed by Sergey Vojtovich

fix that mysqld aborts on exit if an open handlersocket connection remains

parent 4f0fc0f9
...@@ -344,7 +344,7 @@ void ...@@ -344,7 +344,7 @@ void
dbcontext::term_thread() dbcontext::term_thread()
{ {
DBG_THR(fprintf(stderr, "HNDSOCK thread end %p\n", thd)); DBG_THR(fprintf(stderr, "HNDSOCK thread end %p\n", thd));
unlock_tables_if(); close_tables_if();
my_pthread_setspecific_ptr(THR_THD, 0); my_pthread_setspecific_ptr(THR_THD, 0);
{ {
pthread_mutex_lock(&LOCK_thread_count); pthread_mutex_lock(&LOCK_thread_count);
......
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