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:
Johan Wikman
2017-08-25 11:28:58 +03:00
parent c11d8fa328
commit 9c25e6d995
9 changed files with 13 additions and 209 deletions

View File

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

View File

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

View File

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