Skip to content

Commit

Permalink
Merge pull request #360 from guagualvcha/fix_win_prune
Browse files Browse the repository at this point in the history
fix syc failed on windows when prune
  • Loading branch information
kyrie-yl authored Aug 10, 2021
2 parents 6fcce0d + 29707b9 commit 8d5f2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/pruner/bloom.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (bloom *stateBloom) Commit(filename, tempname string) error {
return err
}
// Ensure the file is synced to disk
f, err := os.Open(tempname)
f, err := os.OpenFile(tempname, os.O_RDWR, 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 8d5f2ba

Please sign in to comment.