Skip to content

Commit

Permalink
correct free/used typo in prometheus 'connection_pool' gauge cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saunderst committed Mar 15, 2024
1 parent a9e7af8 commit 041c3d7
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 041c3d7

Please sign in to comment.