From 62e2f81ea2f822f2882adbd61fe1c11146a792b4 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 21 Mar 1998 06:10:31 +0000 Subject: [PATCH] rearrange setting disk_op_in_progress near storeClientFileRead(). I suspect maybe we called file_read() without setting disk_op_in_progress? --- src/store_client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store_client.cc b/src/store_client.cc index fb2a1e607c..5cb22ebd7d 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -189,7 +189,6 @@ storeClientCopy2(StoreEntry * e, store_client * sc) sc->swapin_fd); assert(sc->type == STORE_DISK_CLIENT); if (sc->disk_op_in_progress == 0) { - sc->disk_op_in_progress = 1; storeClientFileRead(sc); } else { debug(20, 2) ("storeClientCopy2: Averted multiple fd operation\n"); @@ -233,6 +232,7 @@ storeClientFileRead(store_client * sc) sc->copy_offset + mem->swap_hdr_sz, storeClientReadBody, sc); + sc->disk_op_in_progress = 1; } static void -- 2.47.3