]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
in storePurgeMem, if we didn't swap it out then release it
authorwessels <>
Fri, 24 Oct 1997 09:42:29 +0000 (09:42 +0000)
committerwessels <>
Fri, 24 Oct 1997 09:42:29 +0000 (09:42 +0000)
src/store.cc

index 8130cb7012ed4c9513cff5fada4ee4bfc32586af..fd6629a100bbcd1286a5f1496453deab8ee8bd67 100644 (file)
@@ -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