]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: simplify success notification using srv_set_running()
authorWilly Tarreau <w@1wt.eu>
Wed, 21 May 2014 08:30:54 +0000 (10:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commit3e04838b8aa3624c6581e6a3fcc32436840ade0e
treea63647bd8c6fda35be2c63290c1405a6bbf7f495
parent4eec547f32fd111d321483fd4f249a1cb78a3c82
MEDIUM: checks: simplify success notification using srv_set_running()

Function check_set_server_up() used to set a server up. Now it first
checks if all configured checks are UP, and if all tracked servers are
UP, and only calls set_srv_running() after that. That also simplified
the conditions to call the function, and its logic. The function was
also renamed check_notify_success() to better report this change.
src/checks.c