]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: implement srv_set_stopping()
authorWilly Tarreau <w@1wt.eu>
Wed, 21 May 2014 11:54:57 +0000 (13:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commit8eb7784634f30b2d2988716a7fa4395b31161a05
treeeb8d68d1ccdd26ab84dbcc455561c559ca51924b
parentdbd5e78f5b0a2c77b630b8a17a75e93db4e3a8f3
MINOR: server: implement srv_set_stopping()

This function was taken from check_set_server_drain(). It does not
consider health checks at all and only sets a server to stopping
provided it's not in maintenance and is not currently stopped. The
resulting state will be STOPPING. 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