From 746092a60b3cefbe9617fe5f7e5a9a8d61fb8d13 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 5 Jun 2022 16:44:07 -0700 Subject: [PATCH] add a comment --- weed/mount/weedfs_filehandle.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/mount/weedfs_filehandle.go b/weed/mount/weedfs_filehandle.go index 2d06acbb3..d769e51c5 100644 --- a/weed/mount/weedfs_filehandle.go +++ b/weed/mount/weedfs_filehandle.go @@ -9,6 +9,7 @@ func (wfs *WFS) AcquireHandle(inode uint64, uid, gid uint32) (fileHandle *FileHa var entry *filer_pb.Entry _, _, entry, status = wfs.maybeReadEntry(inode) if status == fuse.OK { + // need to AcquireFileHandle again to ensure correct handle counter fileHandle = wfs.fhmap.AcquireFileHandle(wfs, inode, entry) } return