Skip to content

Commit

Permalink
Merge pull request #3268 from sysown/v2.0.16-3267
Browse files Browse the repository at this point in the history
Closes #3267: Removed duplicated call to 'conn_unregister' in 'monitor_group_replication_thread' performed outside proper check
  • Loading branch information
renecannao authored Feb 8, 2021
2 parents a59a87d + 891bda9 commit f6d9be1
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 f6d9be1

Please sign in to comment.