Group Replication support for MySQL 8.4 and 9.x

Closes #4954
pull/4983/head
René Cannaò 12 months ago
parent d29bf8c236
commit 7490af1783

@ -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

Loading…
Cancel
Save