]> git.pld-linux.org Git - packages/squid.git/commitdiff
ac2a5f8304b29951ee3579cce10a6ea6 squid-2.5.STABLE3-carpfactor.patch
authorankry <ankry@pld-linux.org>
Mon, 21 Jul 2003 14:59:34 +0000 (14:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squid-2.5.STABLE3-carpfactor.patch -> 1.1

squid-2.5.STABLE3-carpfactor.patch [new file with mode: 0644]

diff --git a/squid-2.5.STABLE3-carpfactor.patch b/squid-2.5.STABLE3-carpfactor.patch
new file mode 100644 (file)
index 0000000..4a825c1
--- /dev/null
@@ -0,0 +1,27 @@
+Index: squid/src/carp.c
+diff -c squid/src/carp.c:1.15 squid/src/carp.c:1.15.2.1
+*** squid/src/carp.c:1.15      Thu Jan 11 17:37:15 2001
+--- squid/src/carp.c   Thu Jun 19 15:06:19 2003
+***************
+*** 51,58 ****
+--- 51,70 ----
+      double X_last;
+      int k;
+      peer *p;
++     P_last = 0;
+      for (p = Config.peers; p; p = p->next) {
++      if (P_last > p->carp.load_factor) {
++          /*
++           * Section 3.3 of draft-vinod-carp-v1-03.txt says:
++           *
++           * The Load Factor Multiplier must be calculated from the smallest 
++           * P_k to the largest P_k.  The sum of all P_k's must be 1.
++           */
++          debug(39, 0) ("WARNING: CARP load factor values must not decrease\n");
++          debug(39, 0) ("WARNING: rearrange cache_peer lines so they increase\n");
++      }
+       a += p->carp.load_factor;
++      P_last = p->carp.load_factor;
+       K++;
+      }
+      if (a == 0.0) {
This page took 0.056329 seconds and 4 git commands to generate.