commit | 9943d3117ef294a20ec693f5b09a3b34aff83526 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu May 22 16:20:59 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri May 23 14:29:11 2014 +0200 |
tree | 1f17ff5ae890078d8d8381bbb6422fa9126f7a8e | |
parent | f4e38b36b88ddc40b588af759ef861a1a5a50446 [diff] |
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.