Skip to content

Commit

Permalink
Don't forget to apply regexp filters to chunk entries. (#124)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
  • Loading branch information
tomwilkie authored Dec 17, 2018
1 parent ea324fe commit d6e8788
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/querier/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ outer:
if err != nil {
return nil, err
}
if req.Regex != "" {
iterator, err = iter.NewRegexpFilter(req.Regex, iterator)
if err != nil {
return nil, err
}
}
iterators = append(iterators, iterator)
}
result = append(result, iter.NewNonOverlappingIterator(iterators, labels))
Expand Down

0 comments on commit d6e8788

Please sign in to comment.