aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/filehandle.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-11-18 11:51:38 -0800
committerChris Lu <chris.lu@gmail.com>2018-11-18 11:51:38 -0800
commit4fcfc9410fd407165d7bb1c047bcd21e5b2b7dde (patch)
treefabdbc2da727e125ec354f5f6f8de2f7589e5bb0 /weed/filesys/filehandle.go
parent9655dc9ca95312d578d60e71d839a6b9971a7bea (diff)
downloadseaweedfs-4fcfc9410fd407165d7bb1c047bcd21e5b2b7dde.tar.xz
seaweedfs-4fcfc9410fd407165d7bb1c047bcd21e5b2b7dde.zip
cleanup
Diffstat (limited to 'weed/filesys/filehandle.go')
-rw-r--r--weed/filesys/filehandle.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index 78ae5d342..c640755ee 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -188,8 +188,8 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error {
chunk, err := fh.dirtyPages.FlushToStorage(ctx)
if err != nil {
- glog.Errorf("flush %s/%s to %s [%d,%d): %v", fh.f.dir.Path, fh.f.Name, chunk.FileId, chunk.Offset, chunk.Offset+int64(chunk.Size), err)
- return fmt.Errorf("flush %s/%s to %s [%d,%d): %v", fh.f.dir.Path, fh.f.Name, chunk.FileId, chunk.Offset, chunk.Offset+int64(chunk.Size), err)
+ glog.Errorf("flush %s/%s: %v", fh.f.dir.Path, fh.f.Name, err)
+ return fmt.Errorf("flush %s/%s: %v", fh.f.dir.Path, fh.f.Name, err)
}
if chunk != nil {
fh.f.entry.Chunks = append(fh.f.entry.Chunks, chunk)