Fix wrong check for wsrep_ready
wsrep_ready was check for ON/YES/1/true, but it has to be checked for OFF/NO/0/false as we are removing nodes, not joining.
This commit is contained in:
parent
9f7a7e473e
commit
7a5f11b752
@ -242,7 +242,7 @@ void GaleraMonitor::update_server_status(MXS_MONITORED_SERVER* monitored_server)
|
||||
/* Node is not ready - lets take it offline */
|
||||
if (strcmp(row[0], "wsrep_ready") == 0)
|
||||
{
|
||||
if (strcasecmp(row[1],"YES") || strcasecmp(row[1],"ON") || strcasecmp(row[1],"1") || strcasecmp(row[1],"true"))
|
||||
if (strcasecmp(row[1],"NO") || strcasecmp(row[1],"OFF") || strcasecmp(row[1],"0") || strcasecmp(row[1],"false"))
|
||||
{
|
||||
info.joined = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user