indexer: say the start replay's progress every 50000 entries, so a normal start does not fill the journal

This commit is contained in:
2026-11-16 09:25:44 +01:00
parent bfb80605c3
commit fb588e85c0
2 changed files with 2 additions and 2 deletions
@@ -625,7 +625,7 @@ func run(ctx context.Context, getenv func(string) string, logOut io.Writer) erro
for i, le := range startEnds {
ix.ApplyOutOfStepBuild(ctx, le.Value)
values[i] = le.Value
if (i+1)%2000 == 0 {
if (i+1)%50000 == 0 {
logger.Printf("start: out-of-step findings: %d of %d entries", i+1, len(startEnds))
}
}
@@ -44,7 +44,7 @@ func (ix *Indexer) ApplyBuildEndsAtStart(ctx context.Context, values [][]byte, f
wrote := 0
slow := 0 // entries that took over a second
for i, v := range values {
if (i+1)%500 == 0 {
if (i+1)%50000 == 0 {
ix.logf("replaying the build ends at start: %d of %d, %d wrote a module, %d took over a second, %s so far", i+1, len(values), wrote, slow, time.Since(began).Round(time.Millisecond))
}
t := time.Now()