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
fix/postgresql-cluster-sync
Rene Cannao 5 months ago
parent 1beb5b9e5b
commit a8a7b56ec5

@ -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") {

Loading…
Cancel
Save