From 7a2ee10d71533e34a110e1f6fbb51db3367b2aa2 Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Thu, 4 Jul 2024 15:16:36 +0200 Subject: [PATCH] REORG: mworker: move mworker_create_master_cli in master 'case' Let's move mworker_create_master_cli() call in 'master' case just above and get rid of redundant global.mode tests. --- src/haproxy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index 56a427272..8b2ba8934 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2206,12 +2206,11 @@ static void init(int argc, char **argv) */ global.nbtgroups = 1; global.nbthread = 1; + /* master CLI */ + mworker_create_master_cli(); } } - if (master) - mworker_create_master_cli(); - /* destroy unreferenced defaults proxies */ proxy_destroy_all_unref_defaults();