Author: jfrederic.clere(a)jboss.com
Date: 2008-10-07 05:36:13 -0400 (Tue, 07 Oct 2008)
New Revision: 1940
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Fix the 500 after the child is created.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-10-07 09:27:14 UTC
(rev 1939)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-10-07 09:36:13 UTC
(rev 1940)
@@ -1479,9 +1479,14 @@
if (!*balancer &&
!(*balancer = ap_proxy_get_balancer(r->pool, conf, *url))) {
apr_thread_mutex_unlock(lock);
- ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
- "proxy: CLUSTER no balancer for %s", *url);
- return DECLINED;
+ /* May the node has not be created yet */
+ update_workers_node(conf, r->pool, r->server);
+ if (!(*balancer = ap_proxy_get_balancer(r->pool, conf, *url))) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: CLUSTER no balancer for %s", *url);
+ return DECLINED;
+ }
+ apr_thread_mutex_lock(lock);
}
/* Step 2: find the session route */
Show replies by date