Skip to content

Commit

Permalink
Fixed when no specific storeType
Browse files Browse the repository at this point in the history
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
  • Loading branch information
jojohappy committed Sep 30, 2019
1 parent f043a16 commit d420725
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/query/storeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ func externalLabelsFromStore(store *storeRef) string {

// Append the storeType to the end of list, because the store gateway will be exposed external labels,
// we allow the duplicate external labels with different components.
tsdbLabelSetStrings = append(tsdbLabelSetStrings, store.storeType.String())
if store.storeType != nil {
tsdbLabelSetStrings = append(tsdbLabelSetStrings, store.storeType.String())
}

return strings.Join(tsdbLabelSetStrings, ",")
}
Expand Down

0 comments on commit d420725

Please sign in to comment.