From: hno <> Date: Wed, 14 Nov 2001 00:30:45 +0000 (+0000) Subject: Don't swap out "SPECIAL" entries such as icons. We don't log these anyway X-Git-Tag: SQUID_3_0_PRE1~1305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a56b22126f3a7b9b27d62322f3191da7263bf9bb;p=thirdparty%2Fsquid.git Don't swap out "SPECIAL" entries such as icons. We don't log these anyway so there is no way they can be reused after a restart, and they are never released from memory until destroyed.. --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index b6f292eb76..936aed930b 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -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); }