]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
brought over from modio - storeExpiredReferenceAge() isn't applicable
authoradrian <>
Sat, 6 May 2000 22:44:26 +0000 (22:44 +0000)
committeradrian <>
Sat, 6 May 2000 22:44:26 +0000 (22:44 +0000)
in the current storage layout. It will result in soon to be expired
objects (LRU) entering the digest, but there isn't a hook in the
current code to check this cleanly, so the code has been commented out.

src/store_digest.cc

index eab7d0c60f190fd1b690e3dbeda29ff2879b7491..25871304de8618e0d1dab205aa4686133e049aa6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: store_digest.cc,v 1.38 2000/03/06 16:23:35 wessels Exp $
+ * $Id: store_digest.cc,v 1.39 2000/05/06 16:44:26 adrian Exp $
  *
  * DEBUG: section 71    Store Digest Manager
  * AUTHOR: Alex Rousskov
@@ -230,9 +230,11 @@ storeDigestAddable(const StoreEntry * e)
      * idea: skip objects that are going to be purged before the next
      * update.
      */
+#if 0 /* This code isn't applicable anymore, we can't fix it atm either :( */
 #if !HEAP_REPLACEMENT
     if ((squid_curtime + Config.digest.rebuild_period) - e->lastref > storeExpiredReferenceAge())
        return 0;
+#endif
 #endif
     return 1;
 }