Commit a75d2694 authored by Sergei Golubchik's avatar Sergei Golubchik

thread cache: cleanup DBUG state when caching a thread

this fixes 40 failures in mysql-test
parent 06b45564
......@@ -3014,6 +3014,11 @@ static bool cache_thread()
PSI_THREAD_CALL(delete_current_thread)();
#endif
#ifndef DBUG_OFF
while (_db_is_pushed_())
_db_pop_();
#endif
set_timespec(abstime, THREAD_CACHE_TIMEOUT);
while (!abort_loop && ! wake_thread && ! kill_cached_threads)
{
......
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