From: William Lallemand Date: Wed, 24 Aug 2022 09:15:08 +0000 (+0200) Subject: BUG/MINOR: mworker: does not create the "default" resolvers in wait mode X-Git-Tag: v2.7-dev5~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6020c4e44eb46fd21b5f85db927edb8d10e0482d;p=thirdparty%2Fhaproxy.git BUG/MINOR: mworker: does not create the "default" resolvers in wait mode When doing a re-exec, the master was creating a "default" resolvers, which could result in a warning emitted because the "default" resolvers of the configuration file is not available anymore. Skip the creating of the "default" resolvers in wait mode, this is not useful in the master. Must be backported as far as 2.6. --- diff --git a/src/resolvers.c b/src/resolvers.c index 2124df7bb3..bcfd8783a2 100644 --- a/src/resolvers.c +++ b/src/resolvers.c @@ -3671,6 +3671,9 @@ int resolvers_create_default() { int err_code = 0; + if (global.mode & MODE_MWORKER_WAIT) /* does not create the section if in wait mode */ + return 0; + /* if the section already exists, do nothing */ if (find_resolvers_by_id("default")) return 0;