From c72dbb6f46e7e082ffc86f221a7aedbbd289d755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 9 May 2019 13:40:27 +0300 Subject: [PATCH] MXS-2448: Fix connection counts of persistent DCBs DCBs that were closed while they were persisted were double decremented. --- 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 8ff195472..e1e18e2a2 100644 --- a/server/core/dcb.cc +++ b/server/core/dcb.cc @@ -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