1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-03 01:00:04 +02:00

release file handle

This commit is contained in:
chrislu 2022-02-28 01:23:14 -08:00
parent 3639fedd01
commit 554e239097

View file

@ -65,5 +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) wfs.fhmap.ReleaseByInode(nodeid)
} }