Merge pull request #12757 from bboreham/reuse-bufiter

TSDB: re-use iterator when moving between series
This commit is contained in:
Björn Rabenstein 2023-09-21 14:08:53 +02:00 committed by GitHub
commit f8dd8770ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ func (p *populateWithDelGenericSeriesIterator) reset(blockID ulid.ULID, cr Chunk
p.chks = chks
p.i = -1
p.err = nil
p.bufIter.Iter = nil
// Note we don't touch p.bufIter.Iter; it is holding on to an iterator we might reuse in next().
p.bufIter.Intervals = p.bufIter.Intervals[:0]
p.intervals = intervals
p.currDelIter = nil