prometheus/tsdb/tsdbutil
Björn Rabenstein b866db009b
storage: Fix and improve the Seek method of various iterators (#9878)
There was a subtle and nasty bug in listSeriesIterator.Seek.

In addition, the Seek call is defined to be a no-op if the current
position of the iterator is already pointing to a suitable
sample. This commit adds fast paths for this case to several
potentially expensive Seek calls.

Another bug was in concreteSeriesIterator.Seek. It always searched the
whole series and not from the current position of the iterator.

Signed-off-by: beorn7 <beorn@grafana.com>
2021-11-29 15:17:56 +05:30
..
buffer.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
buffer_test.go storage: Fix and improve the Seek method of various iterators (#9878) 2021-11-29 15:17:56 +05:30
chunks.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
dir_locker.go Share TSDB locker code with agent (#9623) 2021-11-11 11:45:25 -05:00
dir_locker_test.go Share TSDB locker code with agent (#9623) 2021-11-11 11:45:25 -05:00
dir_locker_testutil.go Share TSDB locker code with agent (#9623) 2021-11-11 11:45:25 -05:00