From d227e181d3596b97c677f2f6b352c1d869b8303f Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Tue, 4 Aug 2009 04:06:40 +0200 Subject: [PATCH] Don't release memory objects which have not been stored on disk --- src/store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2