Author: jfrederic.clere(a)jboss.com
Date: 2008-06-16 09:01:50 -0400 (Mon, 16 Jun 2008)
New Revision: 1700
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Oops typos.
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-16 09:04:05 UTC
(rev 1699)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-16 13:01:50 UTC
(rev 1700)
@@ -133,6 +133,7 @@
(*worker)->s->redirect[0] = '\0';
(*worker)->s->lbset = 0;
}
+ (*worker)->s->lbstatus = 1;
if (!reuse) {
/*
@@ -723,7 +724,7 @@
} else {
worker->s->lbstatus += worker->s->lbfactor;
total_factor += worker->s->lbfactor;
- if (!mycandidate || worker->s->lbstatus <
mycandidate->s->lbstatus) {
+ if (!mycandidate || worker->s->lbstatus >
mycandidate->s->lbstatus) {
mycandidate = worker;
}
}
Show replies by date