MXS-2448: Fix connection counts of persistent DCBs
DCBs that were closed while they were persisted were double decremented.
This commit is contained in:
@ -1249,7 +1249,7 @@ void dcb_final_close(DCB* dcb)
|
|||||||
dcb_stop_polling_and_shutdown(dcb);
|
dcb_stop_polling_and_shutdown(dcb);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dcb->server)
|
if (dcb->server && dcb->persistentstart == 0)
|
||||||
{
|
{
|
||||||
// This is now a DCB_ROLE_BACKEND_HANDLER.
|
// This is now a DCB_ROLE_BACKEND_HANDLER.
|
||||||
// TODO: Make decisions according to the role and assert
|
// TODO: Make decisions according to the role and assert
|
||||||
|
Reference in New Issue
Block a user