httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r823093 - /httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c
Date Thu, 08 Oct 2009 08:52:15 GMT
Author: jfclere
Date: Thu Oct  8 08:52:14 2009
New Revision: 823093

URL: http://svn.apache.org/viewvc?rev=823093&view=rev
Log:
When pick was zero no worker where choosen.

Modified:
    httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c

Modified: httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c?rev=823093&r1=823092&r2=823093&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c (original)
+++ httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c Thu Oct  8 08:52:14
2009
@@ -354,7 +354,7 @@
 
         for (i = 0; i < up_servers->nelts; i++) {
             server = APR_ARRAY_IDX(up_servers, i, hb_server_t *);
-            if (pick > c && pick <= c + server->ready) {
+            if (pick >= c && pick <= c + server->ready) {
                 mycandidate = server->worker;
             }
 



Mime
View raw message