]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: simplify failure notification using srv_set_stopped()
authorWilly Tarreau <w@1wt.eu>
Tue, 20 May 2014 20:32:27 +0000 (22:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commit4eec547f32fd111d321483fd4f249a1cb78a3c82
treef580a3fe69ae2bc7446bf68bba9538b412c9eb28
parent8eb7784634f30b2d2988716a7fa4395b31161a05
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.
src/checks.c