]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Properly account "Store Disk files open" in "aufs", even if the opening
authorhno <>
Mon, 22 Oct 2001 15:41:39 +0000 (15:41 +0000)
committerhno <>
Mon, 22 Oct 2001 15:41:39 +0000 (15:41 +0000)
fails or otherwise is rejected by the I/O layer.

src/fs/aufs/store_io_aufs.cc

index 3c2cf579ccfc86d46c99cc109fef0cce7ea1f7b2..9a7dec0337ef5f53da9dbd18f244ef33b1952c24 100644 (file)
@@ -409,12 +409,12 @@ storeAufsIOCallback(storeIOState * sio, int errflag)
     cbdataUnlock(their_data);
     aiostate->fd = -1;
     cbdataFree(sio);
+    store_open_disk_fd--;
     if (fd < 0)
        return;
     debug(78, 3) ("%s:%d\n", __FILE__, __LINE__);
     aioClose(fd);
     fd_close(fd);
-    store_open_disk_fd--;
     debug(78, 3) ("%s:%d\n", __FILE__, __LINE__);
 }