Skip to content

Commit c104aa5

Browse files
committed
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
1 parent c53100d commit c104aa5

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
-*- coding: utf-8 -*-
22
Changes with Apache 2.2.9
33

4+
*) scoreboard: Remove unused proxy load balancer elements from scoreboard
5+
image (not scoreboard memory itself). [Chris Darroch]
6+
47
*) mod_proxy: Support environment variable interpolation in reverse
58
proxying directives. [Nick Kew]
69

STATUS

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@ RELEASE SHOWSTOPPERS:
9090
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
9191
[ start all new proposals below, under PATCHES PROPOSED. ]
9292

93-
* scoreboard: Remove unused proxy load balancer elements from scoreboard
94-
image (not scoreboard memory itself). Array of lb_score elements
95-
originally added in r104404 in manner akin to that used for
96-
worker_score. Supporting code then removed in r105134 but scoreboard
97-
image size calculation left in place, likely by accident.
98-
Trunk version of patch:
99-
http://svn.apache.org/viewvc?view=rev&revision=404848
100-
Backport version for 2.2.x:
101-
http://people.apache.org/~chrisd/patches/scoreboard_lb_score/scoreboard-lb_score-2.2.x.patch
102-
+1: chrisd, rpluem, jim
10393

10494
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
10595
[ New proposals should be added at the end of the list ]

server/scoreboard.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ void ap_init_scoreboard(void *shared_score)
118118

119119
ap_calc_scoreboard_size();
120120
ap_scoreboard_image =
121-
calloc(1, sizeof(scoreboard) + server_limit * sizeof(worker_score *) +
122-
server_limit * lb_limit * sizeof(lb_score *));
121+
calloc(1, sizeof(scoreboard) + server_limit * sizeof(worker_score *));
123122
more_storage = shared_score;
124123
ap_scoreboard_image->global = (global_score *)more_storage;
125124
more_storage += sizeof(global_score);

0 commit comments

Comments
 (0)