From 8272aded30a2d271c7a0d19eccb2fbe54254ba32 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 24 Oct 1997 09:42:29 +0000 Subject: [PATCH] in storePurgeMem, if we didn't swap it out then release it --- src/store.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/store.cc b/src/store.cc index 8130cb7012..fd6629a100 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.307 1997/10/24 02:52:19 wessels Exp $ + * $Id: store.cc,v 1.308 1997/10/24 03:42:29 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -468,6 +468,11 @@ storePurgeMem(StoreEntry * e) storeSetMemStatus(e, NOT_IN_MEMORY); destroy_MemObject(e->mem_obj); e->mem_obj = NULL; + if (e->swap_status != SWAPOUT_DONE) { + debug(0,0)("storePurgeMem: swap_status = %s, releasing\n", + swapStatusStr[e->swap_status]); + storeRelease(e); + } } void -- 2.47.3