From de77d00c81152681b5a5c649b123989d2093dcc6 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 27 Feb 2022 23:12:28 -0800 Subject: [PATCH] correctly clean up for a file --- weed/mount/weedfs_forget.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/mount/weedfs_forget.go b/weed/mount/weedfs_forget.go index 62946b216..63b560cee 100644 --- a/weed/mount/weedfs_forget.go +++ b/weed/mount/weedfs_forget.go @@ -65,4 +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) }