From be9ce462150e0b6d4f3e0466999a7e15e184cd7d Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 21 Oct 1997 22:13:51 +0000 Subject: [PATCH] Modify assertion in storeSwapInFileOpened(). Its okay to open a swap file if its still being written (SWAPOUT_WRITING). --- src/store.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.47.3