From: hno <> Date: Mon, 22 Oct 2001 15:41:39 +0000 (+0000) Subject: Properly account "Store Disk files open" in "aufs", even if the opening X-Git-Tag: SQUID_3_0_PRE1~1333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e1317aae55c86080463bff52414545fbfafe049;p=thirdparty%2Fsquid.git Properly account "Store Disk files open" in "aufs", even if the opening fails or otherwise is rejected by the I/O layer. --- diff --git a/src/fs/aufs/store_io_aufs.cc b/src/fs/aufs/store_io_aufs.cc index 3c2cf579cc..9a7dec0337 100644 --- a/src/fs/aufs/store_io_aufs.cc +++ b/src/fs/aufs/store_io_aufs.cc @@ -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__); }