Fix delete connection with incorrect index

pull/5094/head
Juan Manuel Fernández García-Minguillán 10 months ago
parent afb1865107
commit db4f7d9c74

@ -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--;
}

Loading…
Cancel
Save