Author: jfrederic.clere(a)jboss.com
Date: 2008-11-25 07:59:15 -0500 (Tue, 25 Nov 2008)
New Revision: 2069
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Skip balancer without sticky information.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-11-24 21:10:14 UTC
(rev 2068)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-11-25 12:59:15 UTC
(rev 2069)
@@ -1386,6 +1386,10 @@
balancer = (proxy_balancer *)conf->balancers->elts;
for (i = 0; i < conf->balancers->nelts; i++, balancer++) {
+
+ if (balancer->sticky == NULL)
+ continue;
+
route = get_route(r, balancer->sticky, r->uri, &sticky_used);
if (route) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
Show replies by date