From 368e64aaedfd18e9cc685140a898321f9977b425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Fri, 13 Sep 2019 10:42:10 +0300 Subject: MDEV-19826: Avoid unused variable in cmake -DPLUGIN_PERFSCHEMA=NO --- sql/wsrep_thd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/wsrep_thd.cc') diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc index 50f0376f674..f5cce69b1d0 100644 --- a/sql/wsrep_thd.cc +++ b/sql/wsrep_thd.cc @@ -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); -- cgit v1.2.1