MCPcopy
hub / github.com/grafana/dskit / HasOwner

Method HasOwner

ring/partition_ring_model.go:303–306  ·  view source on GitHub ↗

HasOwner returns whether a owner exists.

(id string)

Source from the content-addressed store, hash-verified

301
302// HasOwner returns whether a owner exists.
303func (m *PartitionRingDesc) HasOwner(id string) bool {
304 _, ok := m.Owners[id]
305 return ok
306}
307
308// PartitionOwnersCount returns the number of owners for a given partition.
309func (m *PartitionRingDesc) PartitionOwnersCount(partitionID int32) int {

Calls

no outgoing calls

Tested by 1