log blocks stat after downloading, before indexing (#8947)

This commit is contained in:
Alex Sharov 2023-12-11 17:05:51 +07:00 committed by GitHub
parent 34d93fbe18
commit 7fb8f9db59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R
return err
}
cfg.blockReader.Snapshots().LogStat()
cfg.agg.LogStats(tx, func(endTxNumMinimax uint64) uint64 {
_, histBlockNumProgress, _ := rawdbv3.TxNums.FindBlockNum(tx, endTxNumMinimax)
return histBlockNumProgress

View File

@ -90,6 +90,7 @@ type FullBlockReader interface {
}
type BlockSnapshots interface {
LogStat()
ReopenFolder() error
SegmentsMax() uint64
ScanDir() (map[string]struct{}, []*Range, error)