MINOR: config: report the number of processes using a peers section in the error case

It can be helpful to know how many different processes try to use the
same peers section when trying to find the culprits.
This commit is contained in:
Willy Tarreau 2015-05-04 21:48:51 +02:00
parent 0334ffc65d
commit 64c5722e05

View 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);