Skip to content

Commit 8f3ec5d

Browse files
committed
fusefrontend: unbreak isConsecutiveWrite streaming write optimization
Commit 6196a5b got the logic inverted, hence we never set the last position markers. Fixes #712
1 parent 85297cd commit 8f3ec5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/fusefrontend/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func (f *File) Write(ctx context.Context, data []byte, off int64) (uint32, sysca
384384
}
385385
}
386386
n, errno := f.doWrite(data, off)
387-
if errno != 0 {
387+
if errno == 0 {
388388
f.lastOpCount = openfiletable.WriteOpCount()
389389
f.lastWrittenOffset = off + int64(len(data)) - 1
390390
}

0 commit comments

Comments
 (0)