]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: use check->state instead of srv->state & SRV_CHECKED
authorWilly Tarreau <w@1wt.eu>
Wed, 11 Dec 2013 19:36:34 +0000 (20:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Dec 2013 15:02:19 +0000 (16:02 +0100)
commitff5ae35b9fde764156b814dca8a57e83b8bcc0fd
treec286c6da728d1bd717e86b08fbd95e7c7dfc890e
parent2e10f5a759ffb51d26915f0ff3f59d4f05803064
MINOR: checks: use check->state instead of srv->state & SRV_CHECKED

Having the check state partially stored in the server doesn't help.
Some functions such as srv_getinter() rely on the server being checked
to decide what check frequency to use, instead of relying on the check
being configured. So let's get rid of SRV_CHECKED and SRV_AGENT_CHECKED
and only use the check's states instead.
include/types/server.h
src/backend.c
src/cfgparse.c
src/checks.c
src/dumpstats.c
src/server.c