Skip to content

Commit

Permalink
fix comment description of CSIVolumesByIDPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Mar 3, 2022
1 parent e759063 commit f7bd72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2265,8 +2265,8 @@ func (s *StateStore) CSIVolumesByPluginID(ws memdb.WatchSet, namespace, prefix,
}

// CSIVolumesByIDPrefix supports search. Caller should snapshot if it wants to
// also denormalize the plugins. If using a prefix, the results will not use an
// index.
// also denormalize the plugins. If using a prefix with the wildcard namespace,
// the results will not use the index prefix.
func (s *StateStore) CSIVolumesByIDPrefix(ws memdb.WatchSet, namespace, volumeID string) (memdb.ResultIterator, error) {
if namespace == structs.AllNamespacesSentinel {
return s.csiVolumeByIDPrefixAllNamespaces(ws, volumeID)
Expand Down

0 comments on commit f7bd72b

Please sign in to comment.