mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Merge pull request #12877 from bboreham/fix-promtool
promtool: fix compile error from bad merge
This commit is contained in:
commit
bca9a79bca
|
@ -478,7 +478,7 @@ func analyzeBlock(ctx context.Context, path, blockID string, limit int, runExten
|
||||||
refs []storage.SeriesRef
|
refs []storage.SeriesRef
|
||||||
)
|
)
|
||||||
if len(matchers) > 0 {
|
if len(matchers) > 0 {
|
||||||
p, err = tsdb.PostingsForMatchers(ir, selectors...)
|
p, err = tsdb.PostingsForMatchers(ctx, ir, selectors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -603,7 +603,7 @@ func analyzeBlock(ctx context.Context, path, blockID string, limit int, runExten
|
||||||
func analyzeCompaction(ctx context.Context, block tsdb.BlockReader, indexr tsdb.IndexReader, matchers []*labels.Matcher) (err error) {
|
func analyzeCompaction(ctx context.Context, block tsdb.BlockReader, indexr tsdb.IndexReader, matchers []*labels.Matcher) (err error) {
|
||||||
var postingsr index.Postings
|
var postingsr index.Postings
|
||||||
if len(matchers) > 0 {
|
if len(matchers) > 0 {
|
||||||
postingsr, err = tsdb.PostingsForMatchers(indexr, matchers...)
|
postingsr, err = tsdb.PostingsForMatchers(ctx, indexr, matchers...)
|
||||||
} else {
|
} else {
|
||||||
n, v := index.AllPostingsKey()
|
n, v := index.AllPostingsKey()
|
||||||
postingsr, err = indexr.Postings(ctx, n, v)
|
postingsr, err = indexr.Postings(ctx, n, v)
|
||||||
|
|
Loading…
Reference in a new issue