]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: implement srv_set_stopped()
authorWilly Tarreau <w@1wt.eu>
Tue, 20 May 2014 20:25:12 +0000 (22:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commite7d1ef16bf1879fe2ff1c9a6d474558f39d97b40
tree60d930ae31adfa82ebd2dc2bb567c804d4cb065d
parenta150cf1a44c430620adae5d7a042eab0e2eae133
MINOR: server: implement srv_set_stopped()

This function was extracted from check_set_server_down(). In only
manipulates the server state and does not consider the health checks
at all, nor does it modify their status. It takes a reason message to
report in logs, however it passes NULL when recursing through the
trackers chain.

For now the function is not used, but the goal is to split health
checks status from server status and to be able to change a server's
state regardless of health checks statuses.
include/proto/server.h
src/server.c