Skip to content

Commit e5b85c1

Browse files
authored
Merge pull request #635 from grafana/krajo/merge-upstream
merge upstream at 179163a
2 parents cf682ab + f33c822 commit e5b85c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)