diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 8cf3a10d2..78f9016bc 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -3539,7 +3539,7 @@ __monitor_run: pthread_join(monitor_aws_aurora_thread,NULL); pthread_join(monitor_replication_lag_thread,NULL); - bool purged_all_connections = false; + My_Conn_Pool->purge_all_connections(); while (shutdown==false) { unsigned int glover; @@ -3554,10 +3554,6 @@ __monitor_run: if (mysql_thread___monitor_enabled==true) { goto __monitor_run; } - else if (purged_all_connections == false) { - My_Conn_Pool->purge_all_connections(); - purged_all_connections = true; - } usleep(200000); }