1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Issue a warning when the same worker name is reused.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@421252 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Frederic Clere
2006-07-12 12:08:36 +00:00
parent ef27013c2f
commit 2afcfcfe6d

View File

@@ -1075,6 +1075,9 @@ static const char *
const char *err = ap_proxy_add_worker(&worker, cmd->pool, conf, r); const char *err = ap_proxy_add_worker(&worker, cmd->pool, conf, r);
if (err) if (err)
return apr_pstrcat(cmd->temp_pool, "ProxyPass ", err, NULL); return apr_pstrcat(cmd->temp_pool, "ProxyPass ", err, NULL);
} else {
ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
"worker %s already used by another worker", worker->name);
} }
PROXY_COPY_CONF_PARAMS(worker, conf); PROXY_COPY_CONF_PARAMS(worker, conf);
@@ -1468,6 +1471,9 @@ static const char *add_member(cmd_parms *cmd, void *dummy, const char *arg)
const char *err; const char *err;
if ((err = ap_proxy_add_worker(&worker, cmd->pool, conf, name)) != NULL) if ((err = ap_proxy_add_worker(&worker, cmd->pool, conf, name)) != NULL)
return apr_pstrcat(cmd->temp_pool, "BalancerMember ", err, NULL); return apr_pstrcat(cmd->temp_pool, "BalancerMember ", err, NULL);
} else {
ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
"worker %s already used by another worker", worker->name);
} }
PROXY_COPY_CONF_PARAMS(worker, conf); PROXY_COPY_CONF_PARAMS(worker, conf);