1
0
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:
Sergei Golubchik
2015-10-14 15:29:57 +02:00
parent b867ade591
commit 2a471e8e98

View File

@ -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);