Skip to content

Commit 7030b3c

Browse files
authored
Merge pull request #4983 from sysown/v3.0_mysql_deprecate_native
Group Replication support for MySQL 8.4 and 9.x
2 parents d29bf8c + 7490af1 commit 7030b3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MySQL_Monitor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,9 @@ void MySQL_Monitor_State_Data::init_async() {
693693
query_ += std::string(hostname) + ":" + std::to_string(port);
694694
}
695695
#else
696-
// MySQL-8: Query dependent on 'COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE'; deprecating the previously
696+
// From MySQL-8: Query dependent on 'COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE'; deprecating the previously
697697
// used `sys.gr_member_routing_candidate_status` view.
698-
if (strncasecmp(this->mysql->server_version, "8", 1) == 0) {
698+
if (mysql_get_server_version(mysql) >= 80000) {
699699
query_ = MYSQL_8_GR_QUERY;
700700
} else {
701701
// If not MySQL 8 we default back to the old check

0 commit comments

Comments
 (0)