tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r613278 - /tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
Date Fri, 18 Jan 2008 21:24:48 GMT
Author: rjung
Date: Fri Jan 18 13:24:47 2008
New Revision: 613278

URL: http://svn.apache.org/viewvc?rev=613278&view=rev
Log:
One forgotten change related to using integer return
in lb find methods.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=613278&r1=613277&r2=613278&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Fri Jan 18 13:24:47 2008
@@ -688,7 +688,7 @@
          * not in error state, stopped, disabled or busy.
          */
         if (JK_WORKER_USABLE(&wr)) {
-            if (!candidate || wr.distance < d ||
+            if (candidate < 0 || wr.distance < d ||
                 (wr.s->lb_value < curmin &&
                 wr.distance == d)) {
                 candidate = i;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message