Author: jfrederic.clere(a)jboss.com
Date: 2009-07-22 02:34:24 -0400 (Wed, 22 Jul 2009)
New Revision: 2501
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Oops C++ code :-(
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-07-21 10:58:50 UTC
(rev 2500)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-07-22 06:34:24 UTC
(rev 2501)
@@ -836,6 +836,10 @@
hostinfo_t *vhost;
host_storage->read_host(vhosts[i], &vhost);
if (vhost->node == node->mess.id) {
+ int j;
+ int sizecontext = context_storage->get_max_size_context();
+ int *contexts = apr_palloc(r->pool, sizeof(int)*sizecontext);
+
/* Check the virtual host */
if (use_alias) {
#if HAVE_CLUSTER_EX_DEBUG
@@ -847,9 +851,6 @@
}
/* Check the contexts */
- int j;
- int sizecontext = context_storage->get_max_size_context();
- int *contexts = apr_palloc(r->pool, sizeof(int)*sizecontext);
sizecontext = context_storage->get_ids_used_context(contexts);
#if HAVE_CLUSTER_EX_DEBUG
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
Show replies by date