fix: Remove unused reset parameter from stats___mcp_query_rules()

Change function signature from stats___mcp_query_rules(bool reset) to
stats___mcp_query_rules() to match MySQL query rules pattern.

The reset parameter was never used in the function body and MySQL's
stats___mysql_query_rules() has no reset parameter.
pull/5312/head
Rene Cannao 1 month ago
parent 8c9aecce9b
commit cc3cc25532

@ -705,7 +705,7 @@ class ProxySQL_Admin {
void stats___mysql_client_host_cache(bool reset);
void stats___mcp_query_tools_counters(bool reset);
void stats___mcp_query_digest(bool reset);
void stats___mcp_query_rules(bool reset);
void stats___mcp_query_rules();
// Update prometheus metrics
void p_stats___memory_metrics();

@ -1607,7 +1607,7 @@ bool ProxySQL_Admin::GenericRefreshStatistics(const char *query_no_space, unsign
stats___mcp_query_digest(true);
}
if (stats_mcp_query_rules) {
stats___mcp_query_rules(false);
stats___mcp_query_rules();
}
if (admin) {

@ -2572,7 +2572,7 @@ void ProxySQL_Admin::stats___mcp_query_digest(bool reset) {
statsdb->execute("COMMIT");
}
void ProxySQL_Admin::stats___mcp_query_rules(bool reset) {
void ProxySQL_Admin::stats___mcp_query_rules() {
if (!GloMCPH) return;
Query_Tool_Handler* qth = GloMCPH->query_tool_handler;
if (!qth) return;

Loading…
Cancel
Save