httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r723661 - /httpd/httpd/trunk/modules/cluster/mod_heartbeat.c
Date Fri, 05 Dec 2008 08:50:08 GMT
Author: pquerna
Date: Fri Dec  5 00:50:08 2008
New Revision: 723661

URL: http://svn.apache.org/viewvc?rev=723661&view=rev
Log:
Don't overcount busy servers from previous generations.
Suggested by: Ruediger Pluem

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartbeat.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartbeat.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartbeat.c?rev=723661&r1=723660&r2=723661&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartbeat.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartbeat.c Fri Dec  5 00:50:08 2008
@@ -73,7 +73,8 @@
                 ready++;
             }
             else if (res != SERVER_DEAD &&
-                     res != SERVER_STARTING && res != SERVER_IDLE_KILL) {
+                     res != SERVER_STARTING && res != SERVER_IDLE_KILL &&
+                     ps->generation == ap_my_generation) {
                 busy++;
             }
         }



Mime
View raw message