From b8a595a0e6d093e7bd64ba2bf0b7fcc482ffa605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 1 Nov 2018 14:01:13 +0200 Subject: [PATCH] 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. --- server/core/dcb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/dcb.cc b/server/core/dcb.cc index 36bfa224e..49b8e67b7 100644 --- a/server/core/dcb.cc +++ b/server/core/dcb.cc @@ -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;