]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: checks: tracking servers must not inherit the MAINT flag
authorWilly Tarreau <w@1wt.eu>
Sat, 14 Dec 2013 15:16:01 +0000 (16:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Dec 2013 15:16:01 +0000 (16:16 +0100)
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.

src/cfgparse.c

index b02bb0154dfa858b3d3a11b09efbfa1014a9e923..2160243908d5d37ced72dbee35cb8adb873fe312 100644 (file)
@@ -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;