]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: config: report the number of processes using a peers section in the error...
authorWilly Tarreau <w@1wt.eu>
Mon, 4 May 2015 19:48:51 +0000 (21:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 May 2015 19:48:51 +0000 (21:48 +0200)
It can be helpful to know how many different processes try to use the
same peers section when trying to find the culprits.

src/cfgparse.c

index 45c9d6d31fc96714595cb5db85a1ce949ea03ad3..13107e83761ef1c8c0c15aedac058edce76fb7f7 100644 (file)
@@ -7924,9 +7924,9 @@ out_uri_auth_compat:
                                /* either it's totally stopped or too much used */
                                if (curpeers->peers_fe->bind_proc) {
                                        Alert("Peers section '%s': peers referenced by sections "
-                                             "running in different processes. Check global.nbproc"
-                                             " and all tables' bind-process settings.\n",
-                                             curpeers->id);
+                                             "running in different processes (%d different ones). "
+                                             "Check global.nbproc and all tables' bind-process "
+                                             "settings.\n", curpeers->id, popcount(curpeers->peers_fe->bind_proc));
                                        cfgerr++;
                                }
                                stop_proxy(curpeers->peers_fe);