mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fix func_hybrid_type crash in --ps --embedded
create_embedded_thd() must reset current_thd before returning, otherwise client [de-]allocations will be happening in that stray THD context
This commit is contained in:
@ -701,6 +701,7 @@ void *create_embedded_thd(int client_flag)
|
||||
threads.append(thd);
|
||||
mysql_mutex_unlock(&LOCK_thread_count);
|
||||
thd->mysys_var= 0;
|
||||
thd->reset_globals();
|
||||
return thd;
|
||||
err:
|
||||
delete(thd);
|
||||
|
Reference in New Issue
Block a user