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:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user