monitors used mysql_ping without MYSQL_OPT_READ_TIMEOUT which caused read to block. Fixed in mysql and galera monitor.
Added log writing per each status change of each server and repeatedly if server is not running.

Removed SERVER_IS_JOINED checks from rwsplit router.
This commit is contained in:
VilhoRaatikka
2014-06-03 19:39:50 +03:00
parent 1ebf27eab3
commit 46495bb59e
6 changed files with 66 additions and 13 deletions

View File

@ -352,7 +352,7 @@ int master_host = -1;
inst->bitmask)));
}
if (SERVER_IN_MAINT(inst->server))
if (SERVER_IN_MAINT(inst->servers[i]->server))
continue;
/*

View File

@ -808,7 +808,7 @@ static bool get_dcb(
}
ss_dassert(succp);
}
else if (btype == BE_MASTER || BE_JOINED)
else if (btype == BE_MASTER)
{
for (i=0; i<rses->rses_nbackends; i++)
{