Commit 927ea880 authored by Aleksey Midenkov's avatar Aleksey Midenkov

MDEV-16264 fix unused variable ‘save_psi_thread’

parent daabc5cc
......@@ -4892,7 +4892,9 @@ void destroy_background_thd(MYSQL_THD thd)
Also preserve current PSI context, since my_thread_end()
would kill it, if we're not careful.
*/
#ifdef HAVE_PSI_THREAD_INTERFACE
auto save_psi_thread= PSI_CALL_get_thread();
#endif
PSI_CALL_set_thread(0);
pthread_setspecific(THR_KEY_mysys, thd_mysys_var);
my_thread_end();
......
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