]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cfgparse: add KWF_DISCOVERY keyword flag
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Fri, 9 Aug 2024 16:46:20 +0000 (18:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commitf9123e21836a0c1646d2d47ae20a5b391344ad14
tree9faf20f9b403528dd4d8dc8d08159b91113a87c1
parent6769745fe597d0e22f87b90d00436670a846bb83
MEDIUM: cfgparse: add KWF_DISCOVERY keyword flag

This commit is a part of the series to add a support of discovery mode in the
configuration parser and in initialization sequence.

So, let's add here KWF_DISCOVERY flag to distinguish the keywords,
which should be parsed in "discovery" mode and which are needed for master
process, from all others. Keywords, that should be parsed in "discovery" mode
have its dedicated parser funtions. Let's tag these functions with
KWF_DISCOVERY flag in keywords list. Like this, only these keyword parsers
might be called during the first configuration read in discovery mode.
include/haproxy/cfgparse.h
src/cfgparse-global.c
src/mworker.c