Skip to content

Commit

Permalink
Disable No Freelist Sync In Backups (#9069)
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas authored Jun 21, 2021
1 parent 6e42f1b commit 9ee086f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions beacon-chain/db/kv/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (s *Store) Backup(ctx context.Context, outputDir string, permissionOverride
copyDB, err := bolt.Open(
backupPath,
params.BeaconIoConfig().ReadWritePermissions,
&bolt.Options{NoFreelistSync: true, NoSync: true, Timeout: params.BeaconIoConfig().BoltTimeout, FreelistType: bolt.FreelistMapType},
&bolt.Options{NoSync: true, Timeout: params.BeaconIoConfig().BoltTimeout, FreelistType: bolt.FreelistMapType},
)
if err != nil {
return err
Expand Down Expand Up @@ -114,6 +114,5 @@ func (s *Store) Backup(ctx context.Context, outputDir string, permissionOverride
// Re-enable sync to allow bolt to fsync
// again.
copyDB.NoSync = false
copyDB.NoFreelistSync = false
return nil
}

0 comments on commit 9ee086f

Please sign in to comment.