From: Willy Tarreau Date: Sat, 14 Dec 2013 15:16:01 +0000 (+0100) Subject: BUG/MEDIUM: checks: tracking servers must not inherit the MAINT flag X-Git-Tag: v1.5-dev20~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=566226b9d7a242ca3cafbc26ea9d70ddb40d4135;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: checks: tracking servers must not inherit the MAINT flag If a server is disabled in configuration and another one tracks it, this last one must not inherit the MAINT flag otherwise it needs to be explicitly enabled afterwards. Just remove this to fix the issue. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index b02bb0154d..2160243908 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -7038,8 +7038,6 @@ out_uri_auth_compat: /* if the other server is forced disabled, we have to do the same here */ if (srv->state & SRV_MAINTAIN) { - newsrv->state |= SRV_MAINTAIN; - newsrv->check.state |= CHK_ST_PAUSED; newsrv->state &= ~SRV_RUNNING; newsrv->check.health = 0; newsrv->agent.health = 0;