Skip to content

Commit

Permalink
Merge pull request #4470 from saunderst/connection_pool-gauge-typo
Browse files Browse the repository at this point in the history
Correct free/used typo in Prometheus 'connection_pool' gauge cleanup
  • Loading branch information
renecannao authored Mar 18, 2024
2 parents 035ad4a + 041c3d7 commit 7326b9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/MySQL_HostGroups_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7326b9c

Please sign in to comment.