Skip to content

Commit f33c822

Browse files
committed
Merge remote-tracking branch 'upstream/main' into krajo/merge-upstream
2 parents cf682ab + 179163a commit f33c822

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tsdb/index/postings.go

+1
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ func (p *MemPostings) PostingsForLabelMatching(ctx context.Context, name string,
419419
count := 1
420420
for _, v := range vals {
421421
if count%checkContextEveryNIterations == 0 && ctx.Err() != nil {
422+
p.mtx.RUnlock()
422423
return ErrPostings(ctx.Err())
423424
}
424425
count++

0 commit comments

Comments
 (0)