correctly clean up for a file

This commit is contained in:
chrislu
2022-02-27 23:12:28 -08:00
parent 18543c6e8b
commit de77d00c81

View File

@@ -65,4 +65,5 @@ func (wfs *WFS) Forget(nodeid, nlookup uint64) {
wfs.inodeToPath.Forget(nodeid, nlookup, func(dir util.FullPath) { wfs.inodeToPath.Forget(nodeid, nlookup, func(dir util.FullPath) {
wfs.metaCache.DeleteFolderChildren(context.Background(), dir) wfs.metaCache.DeleteFolderChildren(context.Background(), dir)
}) })
delete(wfs.fhmap.inode2fh, nodeid)
} }