Skip to content

Commit

Permalink
fusefrontend: unbreak isConsecutiveWrite streaming write optimization
Browse files Browse the repository at this point in the history
Commit 6196a5b got the logic inverted, hence we never
set the last position markers.

Fixes #712
  • Loading branch information
rfjakob committed Feb 21, 2023
1 parent 85297cd commit 8f3ec5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fusefrontend/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (f *File) Write(ctx context.Context, data []byte, off int64) (uint32, sysca
}
}
n, errno := f.doWrite(data, off)
if errno != 0 {
if errno == 0 {
f.lastOpCount = openfiletable.WriteOpCount()
f.lastWrittenOffset = off + int64(len(data)) - 1
}
Expand Down

0 comments on commit 8f3ec5d

Please sign in to comment.