]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: initcall: move STG_REGISTER earlier
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Feb 2022 13:51:49 +0000 (14:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:11:33 +0000 (17:11 +0100)
commit3ebe4d989cf2fdac8601e3dc0d3dd592e013c4ba
treea84f9932a172f10611bcf8fbf2e30e1b7daf6053
parentef301b75566cc4a45e39e27380811b780050f378
MEDIUM: initcall: move STG_REGISTER earlier

The STG_REGISTER init level is used to register known keywords and
protocol stacks. It must be called earlier because some of the init
code already relies on it to be known. For example, "haproxy -vv"
for now is constrained to start very late only because of this.

This patch moves it between STG_LOCK and STG_ALLOC, which is fine as
it's used for static registration.
doc/internals/api/initcalls.txt
include/haproxy/initcall.h
src/haproxy.c