]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
in storeRelease(), move aioCancel() call to after store_rebuilding check
authorwessels <>
Wed, 16 Sep 1998 02:16:22 +0000 (02:16 +0000)
committerwessels <>
Wed, 16 Sep 1998 02:16:22 +0000 (02:16 +0000)
src/store.cc

index c439f4fdc6cd027ba502d012a7f6c863405d8dea..d71343ecf9c754d80228d61125f3e0d7d83b3e87 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.460 1998/09/15 19:38:00 wessels Exp $
+ * $Id: store.cc,v 1.461 1998/09/15 20:16:22 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -764,12 +764,6 @@ storeRelease(StoreEntry * e)
        storeReleaseRequest(e);
        return;
     }
-#if USE_ASYNC_IO
-    /*
-     * Make sure all forgotten async ops are cancelled
-     */
-    aioCancel(-1, e);
-#else
     if (store_rebuilding) {
        debug(20, 2) ("storeRelease: Delaying release until store is rebuilt: '%s'\n",
            storeUrl(e));
@@ -778,6 +772,11 @@ storeRelease(StoreEntry * e)
        e->flags.release_request = 1;
        return;
     }
+#if USE_ASYNC_IO
+    /*
+     * Make sure all forgotten async ops are cancelled
+     */
+    aioCancel(-1, e);
 #endif
     storeLog(STORE_LOG_RELEASE, e);
     if (e->swap_file_number > -1) {