mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
BUG/MINOR: resolvers/mworker: missing default resolvers in mworker mode
Since commit fe75c1e12d
("MEDIUM: startup: remove
MODE_MWORKER_WAIT") the MODE_MWORKER_WAIT constant disappeared. The
initialization of the default resolvers section was conditionned by this
constant.
The section must be created in mworker mode, but only in the worker not in
the master. It was currently completely disabled in both the master and
the worker which could break configuration using it, as well as the
httpclient.
No backport needed.
This commit is contained in:
parent
fdbff3a020
commit
5184f3fb30
@ -3841,7 +3841,8 @@ int resolvers_create_default()
|
||||
{
|
||||
int err_code = ERR_NONE;
|
||||
|
||||
if (global.mode & MODE_MWORKER) /* does not create the section if in MODE_MWORKER */
|
||||
/* does not create the section if in master process */
|
||||
if (master)
|
||||
return ERR_NONE;
|
||||
|
||||
/* if the section already exists, do nothing */
|
||||
|
Loading…
Reference in New Issue
Block a user