aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/filehandle.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-06-11 01:50:00 -0700
committerChris Lu <chris.lu@gmail.com>2020-06-11 01:50:00 -0700
commit628b27ef3b4cf8c1c894430e0d40b0bc1de8ba96 (patch)
tree009480e6bddd1646fd1caa3caabdafd2a9a4eade /weed/filesys/filehandle.go
parentb9365de47b04414e704cb62a3cfa9753e8c5ec0c (diff)
downloadseaweedfs-628b27ef3b4cf8c1c894430e0d40b0bc1de8ba96.tar.xz
seaweedfs-628b27ef3b4cf8c1c894430e0d40b0bc1de8ba96.zip
purge old cache implementation
Diffstat (limited to 'weed/filesys/filehandle.go')
-rw-r--r--weed/filesys/filehandle.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index c6637259d..3386256f9 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -214,9 +214,7 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error {
return fmt.Errorf("fh flush create %s: %v", fh.f.fullpath(), err)
}
- if fh.f.wfs.option.AsyncMetaDataCaching {
- fh.f.wfs.metaCache.InsertEntry(context.Background(), filer2.FromPbEntry(request.Directory, request.Entry))
- }
+ fh.f.wfs.metaCache.InsertEntry(context.Background(), filer2.FromPbEntry(request.Directory, request.Entry))
fh.f.wfs.deleteFileChunks(garbages)
for i, chunk := range garbages {