Fix csmon version check

The version check still assumed that 1.1.7 has the required functionality.
This commit is contained in:
Markus Mäkelä
2019-03-22 17:33:04 +02:00
parent 45ba520057
commit 74c888316e

View File

@ -103,10 +103,9 @@ void CsMonitor::update_server_status(MXS_MONITORED_SERVER* srv)
{
status |= SERVER_RUNNING;
if (get_cs_version(srv) >= 10107)
if (get_cs_version(srv) >= 10200)
{
// 1.1.7 should support the mcsSystemPrimary function
// TODO: Update when the actual release is out
// 1.2 supports the mcsSystemPrimary function
status |= do_query(srv, role_query) == "1" ? SERVER_MASTER : SERVER_SLAVE;
}
else