From 0604afcda795b6a071895ea44f5b22675b578966 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 12 Feb 2021 06:01:04 -0800 Subject: [PATCH] mount: remove unnecessary flush on release --- weed/filesys/filehandle.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index 85f64d292..4ed0e6c2b 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -192,11 +192,6 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err if fh.f.isOpen == 1 { - if err := fh.doFlush(ctx, req.Header); err != nil { - glog.Errorf("Release doFlush %s: %v", fh.f.Name, err) - return err - } - fh.f.isOpen-- fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))