MXS-2593: Remove unnecessary hangups
The backend DCBs do not have to send hangups in the close protocol API method. If the conditions for the hangup were true, the session was already stopping meaning that the client DCB was already closed.
This commit is contained in:
@ -1403,15 +1403,6 @@ static int gw_backend_close(DCB* dcb)
|
||||
/** Free protocol data */
|
||||
mysql_protocol_done(dcb);
|
||||
|
||||
/**
|
||||
* If session state is SESSION_STATE_STOPPING, start closing client session.
|
||||
* Otherwise only this backend connection is closed.
|
||||
*/
|
||||
if (dcb->session && dcb->session->state == SESSION_STATE_STOPPING)
|
||||
{
|
||||
poll_fake_hangup_event(dcb->session->client_dcb);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user