Commit b97e45f7 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed main.null failure in embedded

It is not permitted to "delete thd" under LOCK_thread_count anymore.
parent 2552a956
...@@ -428,8 +428,8 @@ static void emb_free_embedded_thd(MYSQL *mysql) ...@@ -428,8 +428,8 @@ static void emb_free_embedded_thd(MYSQL *mysql)
thread_count--; thread_count--;
thd->store_globals(); thd->store_globals();
thd->unlink(); thd->unlink();
delete thd;
mysql_mutex_unlock(&LOCK_thread_count); mysql_mutex_unlock(&LOCK_thread_count);
delete thd;
my_pthread_setspecific_ptr(THR_THD, 0); my_pthread_setspecific_ptr(THR_THD, 0);
mysql->thd=0; mysql->thd=0;
} }
......
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