]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Don't swap out "SPECIAL" entries such as icons. We don't log these anyway
authorhno <>
Wed, 14 Nov 2001 00:30:45 +0000 (00:30 +0000)
committerhno <>
Wed, 14 Nov 2001 00:30:45 +0000 (00:30 +0000)
so there is no way they can be reused after a restart, and they are never
released from memory until destroyed..

src/store_swapout.cc

index b6f292eb76c1384386f0b2a513dec8553bc58bfa..936aed930b41765c212a495b6dc29b73f429eae0 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_swapout.cc,v 1.83 2001/10/24 08:19:09 hno Exp $
+ * $Id: store_swapout.cc,v 1.84 2001/11/13 17:30:45 hno Exp $
  *
  * DEBUG: section 20    Storage Manager Swapout Functions
  * AUTHOR: Duane Wessels
@@ -366,8 +366,8 @@ storeSwapOutAble(const StoreEntry * e)
        if (((store_client *) node->data)->type == STORE_DISK_CLIENT)
            return 1;
     }
-    if (store_dirs_rebuilding)
-       if (!EBIT_TEST(e->flags, ENTRY_SPECIAL))
-           return 0;
+    /* Don't pollute the disk with icons and other special entries */
+    if (EBIT_TEST(e->flags, ENTRY_SPECIAL))
+       return 0;
     return EBIT_TEST(e->flags, ENTRY_CACHABLE);
 }