]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: allow init-state for dynamic servers
authorDamien Claisse <d.claisse@criteo.com>
Tue, 10 Sep 2024 14:52:42 +0000 (14:52 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Sep 2024 16:18:38 +0000 (18:18 +0200)
commitce6a621ae36f7512e065381646d99125ac6d9743
tree9bf16b219ae0642198e4903b6fa03ca28616a78b
parent33deb4babe83b361f9f7423030cd8cc8318ca2bf
MINOR: server: allow init-state for dynamic servers

Commit 50322df introduced the init-state keyword, but it didn't enable
it for dynamic servers. However, this feature is perfectly desirable
for virtual servers too, where someone would like a server inlived
through "set server be1/srv1 state ready" to be put out of maintenance
in down state until the next health check succeeds.
At reading the code, it seems that it's only a matter of allowing this
keyword for dynamic servers, as current code path calls
srv_adm_set_ready() which incidentally triggers a call to
_srv_update_status_adm().
doc/configuration.txt
src/server.c