Skip to content

Commit

Permalink
Removed duplicated call to 'conn_unregister' in 'monitor_group_replic…
Browse files Browse the repository at this point in the history
…ation_thread' performed outside proper check
  • Loading branch information
JavierJF committed Jan 21, 2021
1 parent ccc0887 commit 891bda9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/MySQL_Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 891bda9

Please sign in to comment.