Merge pull request #12757 from bboreham/reuse-bufiter
TSDB: re-use iterator when moving between series
This commit is contained in:
commit
f8dd8770ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue