Explorar o código

Merge pull request #360 from guagualvcha/fix_win_prune

fix syc failed on windows when prune
kyrie-yl %!s(int64=4) %!d(string=hai) anos
pai
achega
8d5f2ba90d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/state/pruner/bloom.go

+ 1 - 1
core/state/pruner/bloom.go

@@ -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
 	}