We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d29bf8c + 7490af1 commit 7030b3cCopy full SHA for 7030b3c
lib/MySQL_Monitor.cpp
@@ -693,9 +693,9 @@ void MySQL_Monitor_State_Data::init_async() {
693
query_ += std::string(hostname) + ":" + std::to_string(port);
694
}
695
#else
696
- // 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
697
// used `sys.gr_member_routing_candidate_status` view.
698
- if (strncasecmp(this->mysql->server_version, "8", 1) == 0) {
+ if (mysql_get_server_version(mysql) >= 80000) {
699
query_ = MYSQL_8_GR_QUERY;
700
} else {
701
// If not MySQL 8 we default back to the old check
0 commit comments