From 554e23909764ffbc2f25c11108870be445548f9c Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 28 Feb 2022 01:23:14 -0800 Subject: [PATCH] release file handle --- weed/mount/weedfs_forget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/mount/weedfs_forget.go b/weed/mount/weedfs_forget.go index 63b560cee..4212adeb6 100644 --- a/weed/mount/weedfs_forget.go +++ b/weed/mount/weedfs_forget.go @@ -65,5 +65,5 @@ func (wfs *WFS) Forget(nodeid, nlookup uint64) { wfs.inodeToPath.Forget(nodeid, nlookup, func(dir util.FullPath) { wfs.metaCache.DeleteFolderChildren(context.Background(), dir) }) - delete(wfs.fhmap.inode2fh, nodeid) + wfs.fhmap.ReleaseByInode(nodeid) }