From 041c3d7d23bf697b9fdb5716ae88dac282e5d7d1 Mon Sep 17 00:00:00 2001 From: Thomas Saunders Date: Fri, 15 Mar 2024 15:07:09 -0600 Subject: [PATCH] correct free/used typo in prometheus 'connection_pool' gauge cleanup --- lib/MySQL_HostGroups_Manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index ec7c5dc9c..2c70883d5 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -4380,13 +4380,13 @@ void MySQL_HostGroups_Manager::p_update_connection_pool() { status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_status]->Remove(gauge); status.p_connection_pool_status_map.erase(key); - gauge = status.p_connection_pool_conn_used_map[key]; + gauge = status.p_connection_pool_conn_free_map[key]; status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_conn_free]->Remove(gauge); - status.p_connection_pool_conn_used_map.erase(key); + status.p_connection_pool_conn_free_map.erase(key); - gauge = status.p_connection_pool_conn_free_map[key]; + gauge = status.p_connection_pool_conn_used_map[key]; status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_conn_used]->Remove(gauge); - status.p_connection_pool_conn_free_map.erase(key); + status.p_connection_pool_conn_used_map.erase(key); gauge = status.p_connection_pool_latency_us_map[key]; status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_latency_us]->Remove(gauge);