]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: implement srv_set_running()
authorWilly Tarreau <w@1wt.eu>
Tue, 20 May 2014 20:46:35 +0000 (22:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commitdbd5e78f5b0a2c77b630b8a17a75e93db4e3a8f3
tree9c2ed528776d67a13806405e27e7900ee7f87bf8
parente7d1ef16bf1879fe2ff1c9a6d474558f39d97b40
MINOR: server: implement srv_set_running()

This function was taken from check_set_server_up(). It does not consider
health checks at all and only sets a server up provided it's not in
maintenance. The resulting state may be either RUNNING or STARTING
depending on the presence of a slowstart or not. The state change is
propagated to tracked servers.

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