]> git.kaiwu.me - haproxy.git/commit
MEDIUM: cfgparse: call some parsers only in MODE_DISCOVERY
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 1 Oct 2024 14:09:29 +0000 (16:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commit48371e6a3093c406933857e74bbfb0c9903052f2
tree26e048ac08dc41ef60b5c9ac272dd77ef0b0d9c9
parentf9123e21836a0c1646d2d47ae20a5b391344ad14
MEDIUM: cfgparse: call some parsers only in MODE_DISCOVERY

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

Some keyword parsers tagged with KWF_DISCOVERY (for example those, which parse
runtime modes, poller types, pidfile), should not be called twice when
the configuration will be read the second time after the discovery mode.
It's redundant and could trigger parser's errors in standalone mode. In
master-worker mode the worker process inherits parsed settings from the master.
src/cfgparse-global.c
src/mworker.c