From: Mladen Turk Date: Tue, 24 Aug 2004 12:10:37 +0000 (+0000) Subject: Increase the request count for each runtime worker X-Git-Tag: STRIKER_2_1_0_RC1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e35c8a4b227a0be6f9166ffc032793b69c3cbd;p=thirdparty%2Fapache%2Fhttpd.git Increase the request count for each runtime worker when the worker is elected. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104789 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_balancer.c b/modules/proxy/proxy_balancer.c index abc36a01197..c002f0d7a88 100644 --- a/modules/proxy/proxy_balancer.c +++ b/modules/proxy/proxy_balancer.c @@ -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 */