Skip to content

Commit

Permalink
open old freezer in readonly mode, fix locking error
Browse files Browse the repository at this point in the history
  • Loading branch information
alecps committed Aug 22, 2024
1 parent 3692878 commit e3fddea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-chain-ops/cmd/celo-migrate/ancients.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type RLPBlockRange struct {
func migrateAncientsDb(ctx context.Context, oldDBPath, newDBPath string, batchSize, bufferSize uint64) (uint64, uint64, error) {
defer timer("ancients")()

oldFreezer, err := rawdb.NewChainFreezer(filepath.Join(oldDBPath, "ancient"), "", false) // Can't be readonly because we need the .meta files to be created
oldFreezer, err := rawdb.NewChainFreezer(filepath.Join(oldDBPath, "ancient"), "", true) // TODO(Alec) make sure we don't need this to be read/write (we thought it needed to be in order for it to make .meta files but it's causing locking error)
if err != nil {
return 0, 0, fmt.Errorf("failed to open old freezer: %w", err)
}
Expand Down

0 comments on commit e3fddea

Please sign in to comment.