Fix to bug MXS-25

A failed master no longer generates the "Info: A Master Server is now available" message.
This commit is contained in:
Markus Makela 2015-04-30 11:28:07 +03:00
parent bb51a6fb9d
commit 6c904b164a

View File

@ -796,7 +796,7 @@ int log_no_master = 1;
mon_status_changed(root_master) &&
!(root_master->server->status & SERVER_STALE_STATUS))
{
if (root_master->pending_status & (SERVER_MASTER)) {
if (root_master->pending_status & (SERVER_MASTER) && SERVER_IS_RUNNING(root_master->server)) {
if (!(root_master->mon_prev_status & SERVER_STALE_STATUS) &&
!(root_master->server->status & SERVER_MAINT))
{