1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed main.null failure in embedded

It is not permitted to "delete thd" under LOCK_thread_count anymore.
This commit is contained in:
Sergey Vojtovich
2016-02-26 12:13:41 +04:00
parent 2552a95621
commit b97e45f7b8

View File

@ -428,8 +428,8 @@ static void emb_free_embedded_thd(MYSQL *mysql)
thread_count--;
thd->store_globals();
thd->unlink();
delete thd;
mysql_mutex_unlock(&LOCK_thread_count);
delete thd;
my_pthread_setspecific_ptr(THR_THD, 0);
mysql->thd=0;
}