MEDIUM: checks: simplify stopping mode notification using srv_set_stopping()
authorWilly Tarreau <w@1wt.eu>
Wed, 21 May 2014 11:57:23 +0000 (13:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commitdb58b79ccd7e43283b48733de9c51c105dc3e246
tree69d15a3bd750e57047faeac39020c4a1d7d44d44
parent3e04838b8aa3624c6581e6a3fcc32436840ade0e
MEDIUM: checks: simplify stopping mode notification using srv_set_stopping()

Function check_set_server_drain() used to set a server into stopping state.
Now it first checks if all configured checks are UP, and if the possibly
tracked servers is not stopped, and only calls set_srv_stopping() after
that. That also simplified the conditions to call the function, and its
logic. The function was also renamed check_notify_stopping() to better
report this change.
src/checks.c