Author: jfrederic.clere(a)jboss.com
Date: 2008-06-18 04:07:42 -0400 (Wed, 18 Jun 2008)
New Revision: 1717
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Arrange the balancer creation.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-18 07:35:32 UTC
(rev 1716)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-18 08:07:42 UTC
(rev 1717)
@@ -210,15 +210,14 @@
}
#endif
- /* XXX: Missing logic to copy the shared memory information to the balancer */
- /* the balancer must be searched using the name (node->balancer) */
- /* read the ident of the nodes */
+ /* Logic to copy the shared memory information to the balancer */
bal = apr_pcalloc(pool, sizeof(int) *
balancer_storage->get_max_size_balancer());
sizebal = balancer_storage->get_ids_used_balancer(bal);
for (i=0; i<sizebal; i++) {
balancerinfo_t *balan;
balancer_storage->read_balancer(bal[i], &balan);
- if (strcmp(balan->balancer, balancer->name) == 0) {
+ /* Something like cluster://cluster1 and cluster1 */
+ if (strcmp(balan->balancer, &balancer->name[10]) == 0) {
/* XXX: not yet finished
balancer->sticky
balancer->sticky_force */
Show replies by date