Commit 2a471e8e authored by Sergei Golubchik's avatar Sergei Golubchik

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
parent b867ade5
......@@ -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);
......
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