]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Increase the request count for each runtime worker
authorMladen Turk <mturk@apache.org>
Tue, 24 Aug 2004 12:10:37 +0000 (12:10 +0000)
committerMladen Turk <mturk@apache.org>
Tue, 24 Aug 2004 12:10:37 +0000 (12:10 +0000)
when the worker is elected.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104789 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_balancer.c

index abc36a01197b48c62a5f16de81e50c8306bc8ac0..c002f0d7a888e2d1fd85e1616efbfce8d17acca2 100644 (file)
@@ -288,6 +288,7 @@ static int proxy_balancer_pre_request(proxy_worker **worker,
         int i;
         proxy_runtime_worker *workers;
         /* We have a sticky load balancer */
+        runtime->s->elected++;
         *worker = runtime->w;
         /* Update the workers status 
          * so that even session routes get
@@ -320,6 +321,7 @@ static int proxy_balancer_pre_request(proxy_worker **worker,
             PROXY_BALANCER_UNLOCK(*balancer);
             return HTTP_SERVICE_UNAVAILABLE;
         }
+        runtime->s->elected++;
         *worker = runtime->w;
     }
     /* Decrease the free channels number */