Browse Source

Merge pull request #12757 from bboreham/reuse-bufiter

TSDB: re-use iterator when moving between series
pull/12886/head
Björn Rabenstein 1 year ago committed by GitHub
parent
commit
f8dd8770ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tsdb/querier.go

2
tsdb/querier.go

@ -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…
Cancel
Save