From 97463ca96c3b58ea4fc74322eb4e62a8d6888cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Fri, 30 Jun 2023 13:47:41 +0200 Subject: [PATCH] Fix invalid use of SHUNNED servers for checksum computation in 'read_only_action_v2' --- lib/MySQL_HostGroups_Manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 9f911a23d..1e5a80013 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -4886,8 +4886,7 @@ void MySQL_HostGroups_Manager::read_only_action_v2(const std::list3 ORDER BY hostgroup_id, hostname, port"; - mydb->execute_statement(query, &error, &cols, &affected_rows, &resultset); + mydb->execute_statement(MYSQL_SERVERS_CHECKSUM_QUERY, &error, &cols, &affected_rows, &resultset); if (resultset) { if (resultset->rows_count) {