From db4f7d9c740e5e846bc2de14af34519d4fbe97e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Fern=C3=A1ndez=20Garc=C3=ADa-Minguill?= =?UTF-8?q?=C3=A1n?= Date: Thu, 24 Jul 2025 10:45:37 +0200 Subject: [PATCH] Fix delete connection with incorrect index --- lib/MySQL_HostGroups_Manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 7b579a2310..ffaac5c845 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -2915,7 +2915,7 @@ void MySQL_HostGroups_Manager::drop_all_idle_connections() { unsigned long long intv = mysql_thread___connection_max_age_ms; intv *= 1000; if (curtime > mc->creation_time + intv) { - mc=mscl->remove(0); + mc=mscl->remove(i); delete mc; i--; }