Author: jfrederic.clere(a)jboss.com
Date: 2008-10-23 04:56:12 -0400 (Thu, 23 Oct 2008)
New Revision: 1991
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Remove the cluster:// from the name.
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-23 07:25:10 UTC
(rev 1990)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-10-23 08:56:12 UTC
(rev 1991)
@@ -1274,15 +1274,17 @@
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"cluster: Found route %s", route);
if (node_storage->find_node(&ou, route) == APR_SUCCESS) {
- if (!strcmp(balancer->name, ou->mess.balancer)) {
- /* here we have the route and domain for find_session_route ...
*/
- apr_table_setn(r->notes, "CLUSTER_ROUTE", route);
- if (ou->mess.Domain[0] != '\0') {
+ if (strlen(balancer->name)>10 &&
!strcmp(&balancer->name[10], ou->mess.balancer)) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "cluster: Found balancer %s for %s",
ou->mess.balancer, route);
+ /* here we have the route and domain for find_session_route ...
*/
+ apr_table_setn(r->notes, "CLUSTER_ROUTE", route);
+ if (ou->mess.Domain[0] != '\0') {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"cluster: Found domain %s for %s",
ou->mess.Domain, route);
apr_table_setn(r->notes, "CLUSTER_DOMAIN",
ou->mess.Domain);
- }
- return balancer->name;
+ }
+ return &balancer->name[10];
}
}
}
Show replies by date