From 891bda9a8f13564706e61008d9c389ba4fb382cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 21 Jan 2021 21:15:56 +0000 Subject: [PATCH] Removed duplicated call to 'conn_unregister' in 'monitor_group_replication_thread' performed outside proper check --- lib/MySQL_Monitor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 0adf4c91f9..ab02535c82 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -1279,7 +1279,6 @@ void * monitor_group_replication_thread(void *arg) { if (mmsd->interr) { // group replication check failed mmsd->mysql_error_msg=strdup(mysql_error(mmsd->mysql)); proxy_error("Got error: mmsd %p , MYSQL %p , FD %d : %s\n", mmsd, mmsd->mysql, mmsd->mysql->net.fd, mmsd->mysql_error_msg); - GloMyMon->My_Conn_Pool->conn_unregister(mmsd); if (mmsd->mysql) { GloMyMon->My_Conn_Pool->conn_unregister(mmsd); mysql_close(mmsd->mysql);