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 47fa83d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MySQL_HostGroups_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4381,11 +4381,11 @@ void MySQL_HostGroups_Manager::p_update_connection_pool() {
status.p_connection_pool_status_map.erase(key);

gauge = status.p_connection_pool_conn_used_map[key];
status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_conn_free]->Remove(gauge);
status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_conn_used]->Remove(gauge);
status.p_connection_pool_conn_used_map.erase(key);

gauge = status.p_connection_pool_conn_free_map[key];
status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_conn_used]->Remove(gauge);
status.p_dyn_gauge_array[p_hg_dyn_gauge::connection_pool_conn_free]->Remove(gauge);
status.p_connection_pool_conn_free_map.erase(key);

gauge = status.p_connection_pool_latency_us_map[key];
Expand Down

0 comments on commit 47fa83d

Please sign in to comment.