mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 12:26:14 +02:00
Merge pull request #11761 from bboreham/querier-reuse-iterator
tsdb: re-use iterator when stepping through chunks
This commit is contained in:
commit
e6f2577c5b
@ -682,7 +682,7 @@ func (p *populateWithDelSeriesIterator) Next() chunkenc.ValueType {
|
||||
if p.currDelIter != nil {
|
||||
p.curr = p.currDelIter
|
||||
} else {
|
||||
p.curr = p.currChkMeta.Chunk.Iterator(nil)
|
||||
p.curr = p.currChkMeta.Chunk.Iterator(p.curr)
|
||||
}
|
||||
if valueType := p.curr.Next(); valueType != chunkenc.ValNone {
|
||||
return valueType
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user