MXS-1376 All zombie related code removed
As dcbs are now closed when dcb_close() is called and there is no zombie queue, the zombie state can also be removed.
This commit is contained in:
@ -434,7 +434,7 @@ gw_read_backend_event(DCB *dcb)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (dcb->dcb_is_zombie || dcb->session == NULL ||
|
||||
if (dcb->session == NULL ||
|
||||
dcb->session->state == SESSION_STATE_DUMMY)
|
||||
{
|
||||
return 0;
|
||||
|
@ -1211,8 +1211,7 @@ int gw_write_client_event(DCB *dcb)
|
||||
return_1:
|
||||
#if defined(SS_DEBUG)
|
||||
if (dcb->state == DCB_STATE_POLLING ||
|
||||
dcb->state == DCB_STATE_NOPOLLING ||
|
||||
dcb->state == DCB_STATE_ZOMBIE)
|
||||
dcb->state == DCB_STATE_NOPOLLING)
|
||||
{
|
||||
CHK_PROTOCOL(protocol);
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ int mysql_send_com_quit(DCB* dcb,
|
||||
CHK_DCB(dcb);
|
||||
ss_dassert(packet_number <= 255);
|
||||
|
||||
if (dcb == NULL || dcb->state == DCB_STATE_ZOMBIE)
|
||||
if (dcb == NULL)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user