Skip to content

Commit 3b38a83

Browse files
committed
core/state/pruner: fix state bloom sync permission in Windows
1 parent 97bd6cd commit 3b38a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/pruner/bloom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (bloom *stateBloom) Commit(filename, tempname string) error {
9090
return err
9191
}
9292
// Ensure the file is synced to disk
93-
f, err := os.Open(tempname)
93+
f, err := os.OpenFile(tempname, os.O_RDWR, 0666)
9494
if err != nil {
9595
return err
9696
}

0 commit comments

Comments
 (0)