Crash after double close on debug builds
When a double close is detected in a debug build, a debug assertion is triggered. This will generate a core dump which should help investigate the double close.
This commit is contained in:
@ -1123,6 +1123,7 @@ void dcb_close(DCB *dcb)
|
|||||||
++dcb->n_close;
|
++dcb->n_close;
|
||||||
// TODO: Will this happen on a regular basis?
|
// TODO: Will this happen on a regular basis?
|
||||||
MXS_WARNING("dcb_close(%p) called %u times.", dcb, dcb->n_close);
|
MXS_WARNING("dcb_close(%p) called %u times.", dcb, dcb->n_close);
|
||||||
|
ss_dassert(!true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user