Binlog server: fix closing slave connections called by MySQL admin connection

Binlog server: fix closing slave connections called by MySQL admin
connection
This commit is contained in:
MassimilianoPinto
2017-09-04 15:05:01 +02:00
parent 4c5f0d184c
commit ff94a39038

View File

@ -3274,7 +3274,7 @@ blr_slave_disconnect_server(ROUTER_INSTANCE *router,
1); 1);
sptr->state = BLRS_UNREGISTERED; sptr->state = BLRS_UNREGISTERED;
dcb_close(sptr->dcb); dcb_close_in_owning_thread(sptr->dcb);
break; break;
} }
@ -3396,8 +3396,7 @@ blr_slave_disconnect_all(ROUTER_INSTANCE *router, ROUTER_SLAVE *slave)
MXS_SESSION_ROUTE_REPLY(slave->dcb->session, pkt); MXS_SESSION_ROUTE_REPLY(slave->dcb->session, pkt);
sptr->state = BLRS_UNREGISTERED; sptr->state = BLRS_UNREGISTERED;
dcb_close(sptr->dcb); dcb_close_in_owning_thread(sptr->dcb);
} }
sptr = sptr->next; sptr = sptr->next;
} }