Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into krajo/merge-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
krajorama committed May 15, 2024
2 parents cf682ab + 179163a commit f33c822
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 f33c822

Please sign in to comment.