Skip to content

Commit

Permalink
MDEV-16264 fix unused variable ‘save_psi_thread’
Browse files Browse the repository at this point in the history
  • Loading branch information
midenok committed Nov 20, 2019
1 parent daabc5c commit 927ea88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/sql_class.cc
Expand Up @@ -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();
Expand Down

0 comments on commit 927ea88

Please sign in to comment.