Commit a006d223 authored by Jean-Frederic Clere's avatar Jean-Frederic Clere
Browse files

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
parent 58fc96ee
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1075,6 +1075,9 @@ static const char *
            const char *err = ap_proxy_add_worker(&worker, cmd->pool, conf, r);
            if (err)
                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);

@@ -1468,6 +1471,9 @@ static const char *add_member(cmd_parms *cmd, void *dummy, const char *arg)
        const char *err;
        if ((err = ap_proxy_add_worker(&worker, cmd->pool, conf, name)) != 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);