From: hno <> Date: Tue, 18 Dec 2001 03:20:43 +0000 (+0000) Subject: don't release SPECIAL object memory during storeSwapout. These objects X-Git-Tag: SQUID_3_0_PRE1~1245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=557b96c01086193ea5cc38d1c8b75e9870aada6c;p=thirdparty%2Fsquid.git don't release SPECIAL object memory during storeSwapout. These objects are kept in memory only. --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index 936aed930b..e4f2e2dc64 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -1,6 +1,6 @@ /* - * $Id: store_swapout.cc,v 1.84 2001/11/13 17:30:45 hno Exp $ + * $Id: store_swapout.cc,v 1.85 2001/12/17 20:20:43 hno Exp $ * * DEBUG: section 20 Storage Manager Swapout Functions * AUTHOR: Duane Wessels @@ -115,6 +115,10 @@ storeSwapOut(StoreEntry * e) storeSwapOutFileClose(e); return; } + if (EBIT_TEST(e->flags, ENTRY_SPECIAL)) { + debug(20, 3) ("storeSwapOut: %s SPECIAL\n", storeUrl(e)); + return; + } debug(20, 7) ("storeSwapOut: mem->inmem_lo = %d\n", (int) mem->inmem_lo); debug(20, 7) ("storeSwapOut: mem->inmem_hi = %d\n",