move file reader, entryViewCache to file handle

reduce file object size
This commit is contained in:
Chris Lu
2021-04-14 00:29:58 -07:00
parent 5985a7d38d
commit ca0f07a188
4 changed files with 16 additions and 59 deletions

View File

@@ -111,7 +111,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
if err := wfs.Server.InvalidateNodeData(file); err != nil {
glog.V(4).Infof("InvalidateNodeData %s : %v", filePath, err)
}
file.clearEntry()
file.entry = nil
}
}
dir, name := filePath.DirAndName()