From: wessels <> Date: Fri, 18 Sep 1998 21:15:25 +0000 (+0000) Subject: race condition for async IO. We might be OPENING the swapout file, but X-Git-Tag: SQUID_3_0_PRE1~2699 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44b974baec96c515ad6c8761b95f93979604445b;p=thirdparty%2Fsquid.git race condition for async IO. We might be OPENING the swapout file, but the swapout.fd isn't set yet. --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index 2e20f02be6..15e694b079 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -1,6 +1,6 @@ /* - * $Id: store_swapout.cc,v 1.31 1998/09/14 21:28:16 wessels Exp $ + * $Id: store_swapout.cc,v 1.32 1998/09/18 15:15:25 wessels Exp $ * * DEBUG: section 20 Storage Manager Swapout Functions * AUTHOR: Duane Wessels @@ -371,6 +371,8 @@ storeSwapOutObjectBytesOnDisk(const MemObject * mem) static int storeSwapOutAble(const StoreEntry * e) { + if (e->swap_status == SWAPOUT_OPENING) + return 1; if (e->mem_obj->swapout.fd > -1) return 1; if (e->mem_obj->inmem_lo > 0)