mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -08:00
parent
e3d36f4802
commit
4ae3bce260
|
@ -83,7 +83,7 @@ func (b *BufferedSeriesIterator) Seek(t int64) bool {
|
||||||
t0 := t - b.buf.delta
|
t0 := t - b.buf.delta
|
||||||
|
|
||||||
// If the delta would cause us to seek backwards, preserve the buffer
|
// If the delta would cause us to seek backwards, preserve the buffer
|
||||||
// and just continue regular advancment while filling the buffer on the way.
|
// and just continue regular advancement while filling the buffer on the way.
|
||||||
if t0 > b.lastTime {
|
if t0 > b.lastTime {
|
||||||
b.buf.reset()
|
b.buf.reset()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue