aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2021-04-14 00:29:58 -0700
committerChris Lu <chris.lu@uber.com>2021-04-14 00:29:58 -0700
commitca0f07a188152ac8ea6b6a54f628a30f61634515 (patch)
tree3b29e536c236254c7c35f3363a5f5c6fca5811aa /weed/filesys/wfs.go
parent5985a7d38d4823b868117f93dc958dc9635e8950 (diff)
downloadseaweedfs-ca0f07a188152ac8ea6b6a54f628a30f61634515.tar.xz
seaweedfs-ca0f07a188152ac8ea6b6a54f628a30f61634515.zip
move file reader, entryViewCache to file handle
reduce file object size
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index ba5eb4b6b..aaff1377b 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -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()