Browse Source

mount: remove unnecessary flush on release

pull/1804/head
Chris Lu 4 years ago
parent
commit
0604afcda7
  1. 5
      weed/filesys/filehandle.go

5
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 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.isOpen--
fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle)) fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))

Loading…
Cancel
Save