Browse Source

release resources only when needed to

pull/1427/head
Chris Lu 4 years ago
parent
commit
618b2f6829
  1. 2
      weed/filesys/filehandle.go

2
weed/filesys/filehandle.go

@ -167,9 +167,9 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
if fh.f.isOpen <= 0 {
fh.dirtyPages.releaseResource()
fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))
}
fh.f.entryViewCache = nil
fh.f.reader = nil
}
return nil
}

Loading…
Cancel
Save