Skip to content
Myr

merger: fix chunk cache never getting cleared (#4531)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Commit 7fc13c5 indroduced less aggressive cache invalidation for the chunk cache but saved the new revision before comparing it with the old one, and so the cache was never considered invalid. Fixes #4529

authored by alex-huff · committed by GitHub · parent 3401c2e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/matcher.go+1 added-1 removed
83 unmodified lines
8485 cacheCleared := false86 if request.sort != m.sort || request.revision != m.revision {87 m.sort = request.sort88 m.revision = request.revision88 m.mergerCache = make(map[string]*Merger)89 if !request.revision.compatible(m.revision) {90 m.cache.Clear()91 }92 m.revision = request.revision93 cacheCleared = true94 }9596 // Restart search
162 unmodified lines