MEDIUM: checks: simplify server up/down/nolb transitions
authorWilly Tarreau <w@1wt.eu>
Fri, 16 May 2014 15:37:50 +0000 (17:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commitaf54958d7276a339b62fff67d1e368af4b958a91
treede7041174e822625033917b838790edccbc3f008
parentddd329c059017255fcfa1dbbec3454ef2f50977c
MEDIUM: checks: simplify server up/down/nolb transitions

We don't have to handle the maintenance transition here anymore so we
can simplify the functions and conditions. This also means that we don't
need the disable/enable functions but only a function to switch to each
new state.

It's worth mentionning that at this stage there are still confusions
between the server state and the checks states. For example, the health
check's state is adjusted from tracked servers changing state, while it
should not be.
include/proto/checks.h
src/checks.c