prometheus/storage
Bryan Boreham fbca054af6 storage: don't wrap single querier in merge-queriers
If given a single querier, just return it instead of constructing a
complicated wrapper. The code in `mergeGenericQuerier` which skipped
merging when there was only one is not needed any more.

This change required a few tests to be tweaked, because they relied on
the specific behaviour of `mergeGenericQuerier.Select()`.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2024-01-31 12:14:22 +00:00
..
remote storage/remote: document why two benchmarks are skipped 2024-01-30 16:48:04 +00:00
buffer.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
buffer_test.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
fanout.go storage: skip merging when no remote storage configured 2024-01-18 17:50:06 +00:00
fanout_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
generic.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
interface.go Add ShardedPostings() support to TSDB (#10421) 2024-01-29 11:57:27 +00:00
lazy.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
memoized_iterator.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
memoized_iterator_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
merge.go storage: don't wrap single querier in merge-queriers 2024-01-31 12:14:22 +00:00
merge_test.go storage: don't wrap single querier in merge-queriers 2024-01-31 12:14:22 +00:00
noop.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
secondary.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
series.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
series_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00