]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: make use of srv_is_usable() instead of checking eweight
authorWilly Tarreau <w@1wt.eu>
Thu, 22 May 2014 14:20:59 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commit9943d3117ef294a20ec693f5b09a3b34aff83526
tree1f17ff5ae890078d8d8381bbb6422fa9126f7a8e
parentf4e38b36b88ddc40b588af759ef861a1a5a50446
MINOR: server: make use of srv_is_usable() instead of checking eweight

srv_is_usable() is broader than srv_is_usable() as it not only considers
the weight but the server's state as well. Future changes will allow a
server to be in drain mode with a non-zero weight, so we should migrate
to use that function instead.
src/lb_map.c
src/queue.c
src/server.c