Merge pull request #23370 from karalabe/windows-pruning-fix-b

core/state/pruner: fix state bloom sync permission in Windows
This commit is contained in:
Péter Szilágyi 2021-08-10 11:04:39 +03:00 committed by GitHub
commit 520f25688a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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, 0666)
if err != nil {
return err
}