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:
Markus Mäkelä
2019-07-06 08:15:22 +03:00
parent 0261b65529
commit 4d5b9cae9c

View File

@ -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;
}