From: Jim Jagielski Date: Fri, 30 May 2008 12:38:46 +0000 (+0000) Subject: backport scoreboard-lb_score-2.2.x.patch X-Git-Tag: 2.2.9~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2ca7f650f5adb1ba8e067933554befc008c9688;p=thirdparty%2Fapache%2Fhttpd.git backport scoreboard-lb_score-2.2.x.patch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@661691 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 818cae56f1f..ceeea727a39 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.2.9 + *) scoreboard: Remove unused proxy load balancer elements from scoreboard + image (not scoreboard memory itself). [Chris Darroch] + *) mod_proxy: Support environment variable interpolation in reverse proxying directives. [Nick Kew] diff --git a/STATUS b/STATUS index 29f6f2362e6..53c9db5baa6 100644 --- a/STATUS +++ b/STATUS @@ -90,16 +90,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * scoreboard: Remove unused proxy load balancer elements from scoreboard - image (not scoreboard memory itself). Array of lb_score elements - originally added in r104404 in manner akin to that used for - worker_score. Supporting code then removed in r105134 but scoreboard - image size calculation left in place, likely by accident. - Trunk version of patch: - http://svn.apache.org/viewvc?view=rev&revision=404848 - Backport version for 2.2.x: - http://people.apache.org/~chrisd/patches/scoreboard_lb_score/scoreboard-lb_score-2.2.x.patch - +1: chrisd, rpluem, jim PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/server/scoreboard.c b/server/scoreboard.c index d8ad610f358..060de5ca78a 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -118,8 +118,7 @@ void ap_init_scoreboard(void *shared_score) ap_calc_scoreboard_size(); ap_scoreboard_image = - calloc(1, sizeof(scoreboard) + server_limit * sizeof(worker_score *) + - server_limit * lb_limit * sizeof(lb_score *)); + calloc(1, sizeof(scoreboard) + server_limit * sizeof(worker_score *)); more_storage = shared_score; ap_scoreboard_image->global = (global_score *)more_storage; more_storage += sizeof(global_score);