MDEV-19826: Avoid unused variable in cmake -DPLUGIN_PERFSCHEMA=NO

This commit is contained in:
Marko Mäkelä 2019-09-13 10:42:10 +03:00
parent d0b74bbacc
commit 368e64aaed

View file

@ -455,8 +455,8 @@ void wsrep_delete_threadvars()
DBUG_ASSERT(pthread_getspecific(THR_KEY_mysys));
/* Reset psi state to avoid deallocating applier thread
psi_thread. */
PSI_thread *psi_thread= PSI_CALL_get_thread();
#ifdef HAVE_PSI_INTERFACE
PSI_thread *psi_thread= PSI_CALL_get_thread();
if (PSI_server)
{
PSI_server->set_thread(0);