]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
disable asserting during shutdown
authorwessels <>
Tue, 18 Aug 1998 03:10:47 +0000 (03:10 +0000)
committerwessels <>
Tue, 18 Aug 1998 03:10:47 +0000 (03:10 +0000)
src/store.cc

index 798f6455f4579792eb1026b861fea037e55c5613..66188ee37ce6911a0ec5dcc77db2b4bdc7074277 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.442 1998/08/17 17:17:45 wessels Exp $
+ * $Id: store.cc,v 1.443 1998/08/17 21:10:47 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -133,7 +133,8 @@ destroy_MemObject(StoreEntry * e)
     const Ctx ctx = ctx_enter(mem->url);
     debug(20, 3) ("destroy_MemObject: destroying %p\n", mem);
     e->mem_obj = NULL;
-    assert(mem->swapout.fd == -1);
+    if (!shutting_down)
+        assert(mem->swapout.fd == -1);
     stmemFree(&mem->data_hdr);
     mem->inmem_hi = 0;
     /* XXX account log_url */