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
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;
}