mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08: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 {
|
if chk.MinTime > b.maxt {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if (tombstones.Interval{Mint: chk.MinTime, Maxt: chk.MaxTime}.IsSubrange(intervals)) {
|
||||||
if !(tombstones.Interval{Mint: chk.MinTime, Maxt: chk.MaxTime}.IsSubrange(intervals)) {
|
continue
|
||||||
chks = append(chks, chk)
|
|
||||||
}
|
}
|
||||||
|
chks = append(chks, chk)
|
||||||
|
|
||||||
// If still not entirely deleted, check if trim is needed based on requested time range.
|
// If still not entirely deleted, check if trim is needed based on requested time range.
|
||||||
if !b.disableTrimming {
|
if !b.disableTrimming {
|
||||||
|
|
Loading…
Reference in a new issue