aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/filehandle.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-15 11:01:43 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-15 11:01:43 -0700
commitd598c471361c55d8ff1fc169c95797f3dd6ce695 (patch)
tree4409163c45bd9d68926b67e34f85bc0e6533cea0 /weed/filesys/filehandle.go
parent5039aff3101ed89d933282df33a5a3ffabc5b3b2 (diff)
downloadseaweedfs-d598c471361c55d8ff1fc169c95797f3dd6ce695.tar.xz
seaweedfs-d598c471361c55d8ff1fc169c95797f3dd6ce695.zip
log errors
Diffstat (limited to 'weed/filesys/filehandle.go')
-rw-r--r--weed/filesys/filehandle.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index c7051c961..687588788 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -179,7 +179,9 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
}
if fh.f.isOpen == 0 {
- fh.doFlush(ctx, req.Header)
+ if err := fh.doFlush(ctx, req.Header); err != nil {
+ glog.Errorf("Release doFlush %s: %v", fh.f.Name, err)
+ }
fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))
}