]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse-global: move mode's keywords in cfg_kw_list
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 16 Jul 2024 16:02:53 +0000 (18:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2024 12:15:52 +0000 (14:15 +0200)
commit118ac11ceaa68eb45766f833f8ebac6534d72132
treeba45c1cf3a8bb9df10b7b96c06998f8f4e0063b3
parentd3d35f0fc648f76e2f5a608c01232e7439cb8257
MINOR: cfgparse-global: move mode's keywords in cfg_kw_list

This commit cleans up cfg_parse_global() and prepares the config parser for
master-worker mode refactoring, where daemon and master-worker fork() calls
will happen very early in init().

So, the config in such case should be read twice:
 - at first: only some keywords in the global section for the mode discovery
   and everything, which is related to master process by opportunity;
 - at second: except the master process, all other keywords would be parsed;
src/cfgparse-global.c