Skip to content

Commit

Permalink
Merge pull request #635 from grafana/krajo/merge-upstream
Browse files Browse the repository at this point in the history
merge upstream at 179163a
  • Loading branch information
krajorama committed May 15, 2024
2 parents cf682ab + f33c822 commit e5b85c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsdb/index/postings.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ func (p *MemPostings) PostingsForLabelMatching(ctx context.Context, name string,
count := 1
for _, v := range vals {
if count%checkContextEveryNIterations == 0 && ctx.Err() != nil {
p.mtx.RUnlock()
return ErrPostings(ctx.Err())
}
count++
Expand Down

0 comments on commit e5b85c1

Please sign in to comment.