From d9584b35810e80d0bbef00f0decef48fa6d87020 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 31 Mar 1998 10:12:57 +0000 Subject: [PATCH] Fix cache hits (swapins) during reloading --- src/store_swapin.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/store_swapin.cc b/src/store_swapin.cc index 721e418e51..2281e266c8 100644 --- a/src/store_swapin.cc +++ b/src/store_swapin.cc @@ -15,15 +15,11 @@ storeSwapInStart(StoreEntry * e, SIH * callback, void *callback_data) { swapin_ctrl_t *ctrlp; assert(e->mem_status == NOT_IN_MEMORY); -#if OLD_CODE if (!EBIT_TEST(e->flag, ENTRY_VALIDATED)) { - if (storeDirMapBitTest(e->swap_file_number)) { - /* someone took our file while we weren't looking */ - callback(-1, callback_data); - return; - } + /* We're still reloading and haven't validated this entry yet */ + callback(-1, callback_data); + return; } -#endif debug(20, 3) ("storeSwapInStart: called for %08X %s \n", e->swap_file_number, storeKeyText(e->key)); assert(e->swap_status == SWAPOUT_WRITING || e->swap_status == SWAPOUT_DONE); -- 2.47.2