Fix DCB closing debug assertion

The assertion for a DCB with a fd of -1 needs the internal DCBs as well
since they do not have valid file descriptors.
This commit is contained in:
Markus Mäkelä
2018-11-01 14:01:13 +02:00
parent 49587d78d8
commit b8a595a0e6

View File

@ -1277,7 +1277,7 @@ void dcb_final_close(DCB* dcb)
else
{
// Only listeners are closed with a fd of -1
mxb_assert(dcb->dcb_role == DCB_ROLE_SERVICE_LISTENER);
mxb_assert(dcb->dcb_role == DCB_ROLE_SERVICE_LISTENER || dcb->dcb_role == DCB_ROLE_INTERNAL);
}
dcb->state = DCB_STATE_DISCONNECTED;