]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
delay pools updates for store_client interface changes
authorrobertc <>
Wed, 25 Sep 2002 03:29:31 +0000 (03:29 +0000)
committerrobertc <>
Wed, 25 Sep 2002 03:29:31 +0000 (03:29 +0000)
src/delay_pools.cc

index 04b5729fb2a39ea23800c64bd43565f1f75c1dd8..6698e24e2e1ca3db0481a45866b3cbe80651541e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: delay_pools.cc,v 1.25 2002/07/20 12:30:04 hno Exp $
+ * $Id: delay_pools.cc,v 1.26 2002/09/24 21:29:31 robertc Exp $
  *
  * DEBUG: section 77    Delay Pools
  * AUTHOR: David Luyer <david@luyer.net>
@@ -37,6 +37,7 @@
 
 #if DELAY_POOLS
 #include "squid.h"
+#include "StoreClient.h"
 
 struct _class1DelayPool {
     int class;
@@ -657,7 +658,7 @@ delayMostBytesWanted(const MemObject * mem, int max)
            continue;
        if (sc->type != STORE_MEM_CLIENT)
            continue;
-       wanted = sc->copy_size;
+       wanted = sc->copyInto.length;
        if (wanted > max)
            wanted = max;
        i = delayBytesWanted(sc->delay_id, i, wanted);
@@ -680,7 +681,7 @@ delayMostBytesAllowed(const MemObject * mem)
            continue;
        if (sc->type != STORE_MEM_CLIENT)
            continue;
-       j = delayBytesWanted(sc->delay_id, 0, sc->copy_size);
+       j = delayBytesWanted(sc->delay_id, 0, sc->copyInto.length);
        if (j > jmax) {
            jmax = j;
            d = sc->delay_id;