Skip to content

Commit

Permalink
Merge pull request #22 from howels/fix-large-file-writes
Browse files Browse the repository at this point in the history
Catch error on large writes instead of failing on all large writes
  • Loading branch information
cormallen authored Nov 1, 2023
2 parents 8287508 + 5c49d1e commit 235b0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sibench/file_connection_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (conn *FileConnectionBase) PutObject(key string, id uint64, buffer []byte)

for len(buffer) > 0 {
n, err := fd.Write(buffer)
if err == nil {
if err != nil {
return err
}

Expand Down

0 comments on commit 235b0c0

Please sign in to comment.