Skip to content

Commit

Permalink
make sure we fsync the snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Sep 20, 2024
1 parent a518628 commit 76b18d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helper/raftutil/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@ func RedactSnapshot(srcFile *os.File) error {
if err != nil {
return fmt.Errorf("Failed to copy snapshot to temporary file: %v", err)
}
return nil

return srcFile.Sync()
}

0 comments on commit 76b18d1

Please sign in to comment.