revision-id: 00ce1cb01badf4c5f8101c7791ddea316f288905 (mariadb-10.3.6-194-g00ce1cb01ba) parent(s): 271296c902dc6678e8d1500661f1c54ecb3b7695 author: Jan Lindström committer: Jan Lindström timestamp: 2018-11-19 12:00:11 +0200 message: Fix compiler error if PSI is not used. x --- sql/wsrep_server_state.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sql/wsrep_server_state.cc b/sql/wsrep_server_state.cc index 472be8b8169..b2217148586 100644 --- a/sql/wsrep_server_state.cc +++ b/sql/wsrep_server_state.cc @@ -18,9 +18,12 @@ #include "wsrep_server_state.h" mysql_mutex_t LOCK_wsrep_server_state; -PSI_mutex_key key_LOCK_wsrep_server_state; mysql_cond_t COND_wsrep_server_state; + +#ifdef HAVE_PSI_INTERFACE +PSI_mutex_key key_LOCK_wsrep_server_state; PSI_cond_key key_COND_wsrep_server_state; +#endif Wsrep_server_state::Wsrep_server_state(const std::string& name, const std::string& id,