Skip to content

Commit

Permalink
integration: wait for caplin snap open finish (#11124)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Jul 15, 2024
1 parent 0ec22a8 commit 5ec0362
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/integration/commands/stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -1346,11 +1346,7 @@ func allSnapshots(ctx context.Context, db kv.RoDB, logger log.Logger) (*freezebl
_allBorSnapshotsSingleton.OptimisticalyReopenFolder()
return nil
})
g.Go(func() error { return _aggSingleton.OpenFolder() }) //TODO: open in read-only if erigon running?
err := g.Wait()
if err != nil {
panic(err)
}
g.Go(func() error { return _aggSingleton.OpenFolder() })
g.Go(func() error {
chainConfig := fromdb.ChainConfig(db)
var beaconConfig *clparams.BeaconChainConfig
Expand All @@ -1374,6 +1370,10 @@ func allSnapshots(ctx context.Context, db kv.RoDB, logger log.Logger) (*freezebl
logger.Info("[downloads]", "locked", er == nil, "at", mtime.Format("02 Jan 06 15:04 2006"))
return nil
})
err := g.Wait()
if err != nil {
panic(err)
}

_allSnapshotsSingleton.LogStat("blocks")
_allBorSnapshotsSingleton.LogStat("bor")
Expand Down

0 comments on commit 5ec0362

Please sign in to comment.