From a8a7b56ec5d7dfe69c07b74a2863ea96032e3046 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Sun, 11 Jan 2026 21:18:39 +0000 Subject: [PATCH] fix: correct MySQL variables DELETE query variable name Fixed bug where s_query was incorrectly used instead of d_query when excluding mysql-threads from the DELETE statement. This ensures proper filtering of MySQL variables during cluster sync operations. Resolves: ProxySQL_Cluster.cpp:2436 --- lib/ProxySQL_Cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProxySQL_Cluster.cpp b/lib/ProxySQL_Cluster.cpp index 9d84b408b..08978ef05 100644 --- a/lib/ProxySQL_Cluster.cpp +++ b/lib/ProxySQL_Cluster.cpp @@ -2433,7 +2433,7 @@ void ProxySQL_Cluster::pull_global_variables_from_peer(const string& var_type, c // remember that we read from runtime_global_variables but write into global_variables string_format("DELETE FROM global_variables WHERE variable_name LIKE '%s-%%'", d_query, var_type.c_str()); if (var_type == "mysql") { - s_query += " AND variable_name NOT IN ('mysql-threads')"; + d_query += " AND variable_name NOT IN ('mysql-threads')"; } if (GloVars.cluster_sync_interfaces == false) { if (var_type == "admin") {