From: wessels <> Date: Tue, 18 Aug 1998 03:10:47 +0000 (+0000) Subject: disable asserting during shutdown X-Git-Tag: SQUID_3_0_PRE1~2882 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e66546606a1aa4b38119bba7e1bd1139ffff41e;p=thirdparty%2Fsquid.git disable asserting during shutdown --- diff --git a/src/store.cc b/src/store.cc index 798f6455f4..66188ee37c 100644 --- a/src/store.cc +++ b/src/store.cc @@ -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 */