Skip to content

Commit

Permalink
Update tsdb/querier.go
Browse files Browse the repository at this point in the history
TBS

Co-authored-by: Bryan Boreham <[email protected]>
Signed-off-by: Björn Rabenstein <[email protected]>
  • Loading branch information
beorn7 and bboreham authored May 28, 2024
1 parent 642306b commit 4bc539f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdb/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func inversePostingsForMatcher(ctx context.Context, ix IndexReader, m *labels.Ma
}

res := vals[:0]
// If the inverse match is ="" or =~"", we just want all the values.
// If the match before inversion was !="" or !~"", we just want all the values.
if m.Value == "" && (m.Type == labels.MatchRegexp || m.Type == labels.MatchEqual) {
res = vals
} else {
Expand Down

0 comments on commit 4bc539f

Please sign in to comment.