]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: ensure we can enable a server after boot
authorWilly Tarreau <w@1wt.eu>
Sat, 14 Dec 2013 15:14:15 +0000 (16:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Dec 2013 15:14:15 +0000 (16:14 +0100)
commitbb9665e6498bb93f7048cc900ae80ce350b54815
treeabcba57344c6713f304425eaaf7a1dadbfcc4db7
parent0d924cc74caf41ca458abfaf66dac7bd1de1e97f
BUG/MEDIUM: checks: ensure we can enable a server after boot

Since commit 58c3297 (MEDIUM: Set rise and fall of agent checks to 1),
due to a bogus condition, it became impossible to re-enable a server
that was disabled in the configuration if no agent was enabled. The
reason is that in this case, the agent's health was zero while the
condition expected it to be at least one to consider the action.

Let's fix this by only considering the health of checks that are enabled.
src/checks.c