]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
'check_lru_age' flag of storeCheckExpired() was always called with '1'
authorwessels <>
Wed, 27 May 1998 22:15:24 +0000 (22:15 +0000)
committerwessels <>
Wed, 27 May 1998 22:15:24 +0000 (22:15 +0000)
src/store.cc

index 5f1d15427e1c038baccda065e7a3b58e2282764e..909a327f52cf94abe03aafaeadeb20fe830f09d6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.419 1998/05/26 23:04:15 wessels Exp $
+ * $Id: store.cc,v 1.420 1998/05/27 16:15:24 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -148,7 +148,7 @@ typedef struct lock_ctrl_t {
 /*
  * local function prototypes
  */
-static int storeCheckExpired(const StoreEntry *, int flag);
+static int storeCheckExpired(const StoreEntry *);
 static int storeEntryLocked(const StoreEntry *);
 static int storeEntryValidLength(const StoreEntry *);
 static void storeGetMemSpace(int);
@@ -689,7 +689,7 @@ storeMaintainSwapSpace(void *datanotused)
                dlinkAdd(e, &e->lru, &store_list);
            }
            locked++;
-       } else if (storeCheckExpired(e, 1)) {
+       } else if (storeCheckExpired(e)) {
            expired++;
            storeRelease(e);
        }
@@ -903,14 +903,12 @@ storeKeepInMemory(const StoreEntry * e)
 }
 
 static int
-storeCheckExpired(const StoreEntry * e, int check_lru_age)
+storeCheckExpired(const StoreEntry * e)
 {
     if (storeEntryLocked(e))
        return 0;
     if (EBIT_TEST(e->flag, ENTRY_NEGCACHED) && squid_curtime >= e->expires)
        return 1;
-    if (!check_lru_age)
-       return 0;
     if (squid_curtime - e->lastref > storeExpiredReferenceAge())
        return 1;
     return 0;