MXS-2448: Fix connection counts of persistent DCBs

DCBs that were closed while they were persisted were double decremented.
This commit is contained in:
Markus Mäkelä 2019-05-09 13:40:27 +03:00
parent d2e49c9591
commit c72dbb6f46
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1249,7 +1249,7 @@ void dcb_final_close(DCB* dcb)
dcb_stop_polling_and_shutdown(dcb);
}
if (dcb->server)
if (dcb->server && dcb->persistentstart == 0)
{
// This is now a DCB_ROLE_BACKEND_HANDLER.
// TODO: Make decisions according to the role and assert