From: wessels <> Date: Sat, 18 Oct 1997 01:39:32 +0000 (+0000) Subject: modify assertion: its okay to open a swapin FD while the object is still X-Git-Tag: SQUID_3_0_PRE1~4782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbed1a99ae6aa4d260d94bd378988e20e1502704;p=thirdparty%2Fsquid.git modify assertion: its okay to open a swapin FD while the object is still being swapped out --- diff --git a/src/store.cc b/src/store.cc index a5ad9bac0e..3fbded5365 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.290 1997/10/17 16:21:51 wessels Exp $ + * $Id: store.cc,v 1.291 1997/10/17 19:39:32 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -1065,7 +1065,7 @@ storeSwapInStart(StoreEntry * e, SIH * callback, void *callback_data) return; } } - assert(e->swap_status == SWAPOUT_DONE); + assert(e->swap_status == SWAPOUT_WRITING || e->swap_status == SWAPOUT_DONE); assert(e->swap_file_number >= 0); assert(e->mem_obj != NULL); ctrlp = xmalloc(sizeof(swapin_ctrl_t));