]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: remove the SRV_DRAIN flag which can always be deduced
authorWilly Tarreau <w@1wt.eu>
Tue, 13 May 2014 20:08:20 +0000 (22:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 May 2014 20:18:13 +0000 (22:18 +0200)
commit02615f9b163ba717794b5801611b4ea46ad5f63c
tree355bec0214d37b543a6ff84390ccee60fb05782c
parentbef1b32c4e9dab4eb7ec9c34ae37edc955df4c7c
MINOR: server: remove the SRV_DRAIN flag which can always be deduced

This flag is only a copy of (srv->uweight == 0), so better get rid of
it to reduce some of the confusion that remains in the code, and use
a simple function to return this state based on this weight instead.
include/proto/server.h
include/types/server.h
src/checks.c
src/dumpstats.c
src/server.c