mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 09:02:53 +00:00
Merge pull request #11632 from bboreham/improve-bbss
tsdb: improve blockBaseSeriesSet scan
This commit is contained in:
commit
db99fc43e4
@ -492,10 +492,10 @@ func (b *blockBaseSeriesSet) Next() bool {
|
||||
if chk.MinTime > b.maxt {
|
||||
continue
|
||||
}
|
||||
|
||||
if !(tombstones.Interval{Mint: chk.MinTime, Maxt: chk.MaxTime}.IsSubrange(intervals)) {
|
||||
chks = append(chks, chk)
|
||||
if (tombstones.Interval{Mint: chk.MinTime, Maxt: chk.MaxTime}.IsSubrange(intervals)) {
|
||||
continue
|
||||
}
|
||||
chks = append(chks, chk)
|
||||
|
||||
// If still not entirely deleted, check if trim is needed based on requested time range.
|
||||
if !b.disableTrimming {
|
||||
|
Loading…
Reference in New Issue
Block a user