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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user