]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: checks: fix server maintenance exit sequence
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Mar 2012 16:16:09 +0000 (17:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Mar 2012 16:19:43 +0000 (17:19 +0100)
commit454467849070931e0fd7bd09d62b46fbd4923dc5
tree725c32c7cc8e5ac43e48eed90803a55f6b6772cb
parent869fc1edc2acfa8ff88de2f4e638ad48dca5d246
BUG: checks: fix server maintenance exit sequence

Recent commit 62c3be broke maintenance mode by fixing srv_is_usable().
Enabling a disabled server would not re-introduce it into the farm.
The reason is that in set_server_up(), the SRV_MAINTAIN flag is still
present when recounting the servers. The flag was removed late only to
adjust a log message. Keep a copy of the old flag instead and update
SRV_MAINTAIN earlier.

This fix must also be backported to 1.4 (but no release got the regression).
src/checks.c