From 9e7afd496615ea34597e790dfae64fcea9a35b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Mon, 28 Feb 2022 17:08:18 +0100 Subject: [PATCH] Access 'Monitor::mysql_servers_mutex' through 'GloMyMon' instead of 'this' #3797 --- lib/MySQL_Monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 27aeafeb0..9d9c55504 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -844,7 +844,7 @@ void MySQL_Monitor::check_and_build_standard_tables(SQLite3DB *db, std::vectormysql_servers_mutex); + pthread_mutex_lock(&GloMyMon->mysql_servers_mutex); if (resultset != nullptr) { int rc = 0; @@ -904,7 +904,7 @@ void MySQL_Monitor::update_monitor_mysql_servers(SQLite3_result* resultset) { (*proxy_sqlite3_finalize)(statement32); } - pthread_mutex_unlock(&this->mysql_servers_mutex); + pthread_mutex_unlock(&GloMyMon->mysql_servers_mutex); } void * monitor_connect_thread(void *arg) {