]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: group postinit server tasks under _srv_postparse()
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 8 May 2025 17:15:24 +0000 (19:15 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 2 Jun 2025 15:51:05 +0000 (17:51 +0200)
commitf0b40b49b8e667c9e5a0b57d26c39415a0e37006
tree6a170dd582606eb6424eda074662ad6fa0c4451d
parent8ee8b8a04deaa2689262715957dc72ab7fe50ccb
MINOR: server: group postinit server tasks under _srv_postparse()

init_srv_requeue() and init_srv_slowstart() functions are called after
initial server parsing via REGISTER_POST_SERVER_CHECK() hook, and they
are also manually called for dynamic server after the server is
initialized.

This may conflict with _srv_postparse() which is also registered via
REGISTER_POST_SERVER_CHECK() and called during dynamic server creation

To ensure functions don't conflict with each other, let's ensure they
are executed in proper order by calling init_srv_requeue and
init_srv_slowstart() from _srv_postparse() which now becomes the parent
function for server related postparsing stuff. No change of behavior is
expected.
src/server.c