commit | 87eb1d699429fed94e36fa68ec038d4100483831 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue May 13 18:51:40 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue May 13 22:34:55 2014 +0200 |
tree | 86b53866140a5ed8872817c0ed1b8afbc65edf88 | |
parent | c5150dafd82f70882fc379d145e8cf25625d815d [diff] |
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