Skip to content

Commit

Permalink
fix: return empty iterator instead of null in tagValues (#19894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher M. Wolff authored Nov 4, 2020
1 parent 8ca2989 commit 14443a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v1/services/storage/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func (s *Store) tagValuesSlow(ctx context.Context, mqAttrs *metaqueryAttributes,
if ic, err := newIndexSeriesCursorInfluxQLPred(ctx, mqAttrs.pred, s.TSDBStore.Shards(shardIDs)); err != nil {
return nil, err
} else if ic == nil {
return nil, nil
return cursors.EmptyStringIterator, nil
} else {
cur = ic
}
Expand Down

0 comments on commit 14443a5

Please sign in to comment.