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

Fix PR52402. Check if the shared memory was already created for this proxy_server_conf

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1240181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mladen Turk
2012-02-03 14:13:23 +00:00
parent a631bc9edb
commit 9f1045e8b5

View File

@@ -737,6 +737,12 @@ static int balancer_post_config(apr_pool_t *pconf, apr_pool_t *plog,
sconf = s->module_config;
conf = (proxy_server_conf *)ap_get_module_config(sconf, &proxy_module);
if (conf->bslot) {
/* Shared memory already created for this proxy_server_conf.
*/
s = s->next;
continue;
}
if (conf->balancers->nelts) {
conf->max_balancers = conf->balancers->nelts + conf->bgrowth;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(01178) "Doing balancers create: %d, %d (%d)",