diff --git a/modules/mesh-delivery-indexer/internal/index/source.go b/modules/mesh-delivery-indexer/internal/index/source.go index ca2eb58e..82b654d7 100644 --- a/modules/mesh-delivery-indexer/internal/index/source.go +++ b/modules/mesh-delivery-indexer/internal/index/source.go @@ -252,19 +252,10 @@ func (ix *Indexer) sayCaughtUp(ctx context.Context, written []string, heads map[ if len(merges) == 0 { return } - ix.mu.Lock() - was, had := ix.saidSource[TrunkBranch] - ix.mu.Unlock() branch, src, took := ix.takenWhat(ctx, claimed, Applied{Written: written}) if len(took) == 0 { - // Nothing is said, so the source number is not spent (takenWhat took it). - ix.mu.Lock() - if had { - ix.saidSource[branch] = was - } else { - delete(ix.saidSource, branch) - } - ix.mu.Unlock() + // Nothing is said; the source number takenWhat took is left spent: a gap is harmless, a number said twice or going + // backwards is not (A-431). return } revision := ix.PinPipelines(ctx, branch, src, took)