]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MAJOR: peers: allow peers section to be used with nbproc > 1
authorWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 17:16:14 +0000 (19:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 18:16:31 +0000 (20:16 +0200)
This only works when the peers are bound to exactly one process.

src/cfgparse.c

index aa039950f7c50a4e2965e94be54437bb8c2944d0..e8004c6282b8e8e82befb91e9e4efc72357da4c5 100644 (file)
@@ -6550,12 +6550,6 @@ int check_config_validity()
                        }
                }
 
-               if (global.nbproc > 1 && curproxy->table.peers.name) {
-                       Alert("Proxy '%s': peers can't be used in multi-process mode (nbproc > 1).\n",
-                             curproxy->id);
-                       cfgerr++;
-               }
-
                switch (curproxy->mode) {
                case PR_MODE_HEALTH:
                        cfgerr += proxy_cfg_ensure_no_http(curproxy);