mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fix that mysqld aborts on exit if an open handlersocket connection remains
This commit is contained in:
committed by
Sergey Vojtovich
parent
4f0fc0f912
commit
1c84836819
@ -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);
|
||||||
|
Reference in New Issue
Block a user