From: wessels <> Date: Tue, 21 Oct 1997 22:13:51 +0000 (+0000) Subject: Modify assertion in storeSwapInFileOpened(). Its okay to open a swap X-Git-Tag: SQUID_3_0_PRE1~4746 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be9ce462150e0b6d4f3e0466999a7e15e184cd7d;p=thirdparty%2Fsquid.git Modify assertion in storeSwapInFileOpened(). Its okay to open a swap file if its still being written (SWAPOUT_WRITING). --- diff --git a/src/store.cc b/src/store.cc index 0fd31edf58..96bd986f34 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.298 1997/10/20 22:59:48 wessels Exp $ + * $Id: store.cc,v 1.299 1997/10/21 16:13:51 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -1119,7 +1119,7 @@ storeSwapInFileOpened(void *data, int fd) StoreEntry *e = ctrlp->e; assert(e->mem_obj != NULL); assert(e->mem_status == NOT_IN_MEMORY); - assert(e->swap_status == SWAPOUT_DONE); + assert(e->swap_status == SWAPOUT_WRITING || e->swap_status == SWAPOUT_DONE); if (fd < 0) { debug(20, 0) ("storeSwapInStartComplete: Failed for '%s'\n", e->url); /* Invoke a store abort that should free the memory object */