From f14cbfdc160b3eef112c990988fe9147948749df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 2 Aug 2016 01:27:47 +0000 Subject: [PATCH] Minor fix --- lib/MySQL_Monitor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 27130d240..182250968 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -1436,12 +1436,12 @@ __monitor_run: std::thread * monitor_replication_lag_thread = new std::thread(&MySQL_Monitor::monitor_replication_lag,this); while (shutdown==false && mysql_thread___monitor_enabled==true) { unsigned int glover; - if (GloMTH) + if (GloMTH) { glover=GloMTH->get_global_version(); - if (MySQL_Monitor__thread_MySQL_Thread_Variables_version < glover ) { - MySQL_Monitor__thread_MySQL_Thread_Variables_version=glover; - if (GloMTH) + if (MySQL_Monitor__thread_MySQL_Thread_Variables_version < glover ) { + MySQL_Monitor__thread_MySQL_Thread_Variables_version=glover; mysql_thr->refresh_variables(); + } } monitor_enabled=mysql_thread___monitor_enabled; if ( rand()%5 == 0) { // purge once in a while @@ -1478,12 +1478,12 @@ __monitor_run: monitor_replication_lag_thread->join(); while (shutdown==false) { unsigned int glover; - if (GloMTH) + if (GloMTH) { glover=GloMTH->get_global_version(); - if (MySQL_Monitor__thread_MySQL_Thread_Variables_version < glover ) { - MySQL_Monitor__thread_MySQL_Thread_Variables_version=glover; - if (GloMTH) + if (MySQL_Monitor__thread_MySQL_Thread_Variables_version < glover ) { + MySQL_Monitor__thread_MySQL_Thread_Variables_version=glover; mysql_thr->refresh_variables(); + } } monitor_enabled=mysql_thread___monitor_enabled; if (mysql_thread___monitor_enabled==true) {