commit | 4eec547f32fd111d321483fd4f249a1cb78a3c82 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue May 20 22:32:27 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri May 23 14:29:11 2014 +0200 |
tree | f580a3fe69ae2bc7446bf68bba9538b412c9eb28 | |
parent | 8eb7784634f30b2d2988716a7fa4395b31161a05 [diff] |
MEDIUM: checks: simplify failure notification using srv_set_stopped() Function check_set_server_down() used to set a server down. Now it first checks if the health check's result differs from the server's state, and only calls srv_set_stopped() if the check reports a failure while the server is not down. Thanks to this, the conditions that were present around its call could be removed. The function was also renamed check_notify_failure() to better report this change.