]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: create srv_was_usable() from srv_is_usable() and use a pointer
authorWilly Tarreau <w@1wt.eu>
Tue, 13 May 2014 16:51:40 +0000 (18:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 May 2014 20:34:55 +0000 (22:34 +0200)
commit87eb1d699429fed94e36fa68ec038d4100483831
tree86b53866140a5ed8872817c0ed1b8afbc65edf88
parentc5150dafd82f70882fc379d145e8cf25625d815d
MINOR: server: create srv_was_usable() from srv_is_usable() and use a pointer

We used to call srv_is_usable() with either the current state and weights
or the previous ones. This causes trouble for future changes, so let's first
split it in two variants :
  - srv_is_usable(srv) considers the current status
  - srv_was_usable(srv) considers the previous status
include/proto/backend.h
include/proto/queue.h
src/backend.c
src/lb_chash.c
src/lb_fas.c
src/lb_fwlc.c
src/lb_fwrr.c
src/lb_map.c
src/queue.c