mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-11 22:38:53 +01:00
release resources only when needed to
This commit is contained in:
1 parent
208849702d
commit
618b2f6829
1 file changed
+2
-2
@@ -167,9 +167,9 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
|
|||||||
if fh.f.isOpen <= 0 {
|
if fh.f.isOpen <= 0 {
|
||||||
fh.dirtyPages.releaseResource()
|
fh.dirtyPages.releaseResource()
|
||||||
fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))
|
fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))
|
||||||
|
fh.f.entryViewCache = nil
|
||||||
|
fh.f.reader = nil
|
||||||
}
|
}
|
||||||
fh.f.entryViewCache = nil
|
|
||||||
fh.f.reader = nil
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user