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

Method HasPartition

ring/partition_ring_model.go:263–266  ·  view source on GitHub ↗

HasPartition returns whether a partition exists.

(id int32)

Source from the content-addressed store, hash-verified

261
262// HasPartition returns whether a partition exists.
263func (m *PartitionRingDesc) HasPartition(id int32) bool {
264 _, ok := m.Partitions[id]
265 return ok
266}
267
268// AddOrUpdateOwner adds or updates a partition owner in the ring. Returns true, if the
269// owner was added or updated, false if it was left unchanged.

Calls

no outgoing calls