Allow zombies to be submitted to dcb_close - but why does this happen?

This commit is contained in:
counterpoint
2015-07-06 17:39:32 +01:00
parent fffd8fb73a
commit 96619e2f8f

View File

@ -1891,6 +1891,18 @@ dcb_close(DCB *dcb)
"%lu [dcb_close]",
pthread_self())));
if (DCB_STATE_ZOMBIE == dcb->state)
{
LOGIF(LE, (skygw_log_write(
LOGFILE_ERROR,
"%lu [dcb_close] Error : Removing DCB %p but was in state %s "
"which is unexpected for a call to dcb_close, but not crashing. ",
pthread_self(),
dcb,
STRDCBSTATE(dcb->state))));
return 0;
}
if (DCB_STATE_UNDEFINED == dcb->state
|| DCB_STATE_DISCONNECTED == dcb->state
|| DCB_STATE_ZOMBIE == dcb->state)