]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: srv-state: allow to have both CMAINT and FDRAIN flags
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Nov 2016 17:33:25 +0000 (18:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Nov 2016 13:30:19 +0000 (14:30 +0100)
commite1bde1492a30f5036ca58248e50c27a9e116d9cc
tree31a55f64ea5d45e1992ce6ad484f3256f7f854da
parent22cace2f4c3cbeca27c1941c647e7ae38ec8c0c0
BUG/MINOR: srv-state: allow to have both CMAINT and FDRAIN flags

CMAINT indicates that the server was *initially* disabled in the
configuration via the "disabled" keyword. FDRAIN indicates that the
server was switched to the DRAIN state from the CLI or the agent.
This it's perfectly valid to have both of them in the state file,
so the parser must not reject this combination.

This fix must be backported to 1.6.
src/server.c