From 7490af1783cef631a91e75d147d46722a0764a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 9 Jun 2025 08:02:08 +0000 Subject: [PATCH] Group Replication support for MySQL 8.4 and 9.x Closes #4954 --- lib/MySQL_Monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index d589ad89f..e324f4278 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -693,9 +693,9 @@ void MySQL_Monitor_State_Data::init_async() { query_ += std::string(hostname) + ":" + std::to_string(port); } #else - // MySQL-8: Query dependent on 'COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE'; deprecating the previously + // From MySQL-8: Query dependent on 'COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE'; deprecating the previously // used `sys.gr_member_routing_candidate_status` view. - if (strncasecmp(this->mysql->server_version, "8", 1) == 0) { + if (mysql_get_server_version(mysql) >= 80000) { query_ = MYSQL_8_GR_QUERY; } else { // If not MySQL 8 we default back to the old check