From: Henrik Nordstrom Date: Tue, 4 Aug 2009 02:06:40 +0000 (+0200) Subject: Don't release memory objects which have not been stored on disk X-Git-Tag: SQUID_3_2_0_1~795^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d227e181d3596b97c677f2f6b352c1d869b8303f;p=thirdparty%2Fsquid.git Don't release memory objects which have not been stored on disk --- diff --git a/src/store.cc b/src/store.cc index ec98e9dd7a..2be8cc5360 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1417,7 +1417,7 @@ StoreEntry::keepInMemory() const if (mem_obj->inmem_lo != 0) return 0; - if (!Config.onoff.memory_cache_first && refcount == 1) + if (!Config.onoff.memory_cache_first && swap_status == SWAPOUT_DONE && refcount == 1) return 0; return 1;