MXS-1775 Set/clear initial bits similarly in all monitors

This commit is contained in:
Johan Wikman
2018-05-24 14:23:51 +03:00
parent 8fed6752bd
commit f50ebfce2a
5 changed files with 9 additions and 10 deletions

View File

@ -287,13 +287,13 @@ void GaleraMonitor::update_server_status(MXS_MONITORED_SERVER* monitored_server)
return;
}
server_clear_status_nolock(monitored_server->server, SERVER_AUTH_ERROR);
server_set_status_nolock(monitored_server->server, SERVER_RUNNING);
MYSQL_ROW row;
MYSQL_RES *result;
char *server_string;
/* If we get this far then we have a working connection */
server_set_status_nolock(monitored_server->server, SERVER_RUNNING);
/* get server version string */
mxs_mysql_set_server_version(monitored_server->con, monitored_server->server);
server_string = monitored_server->server->version_string;