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

Method RemoveOwner

ring/partition_ring_model.go:293–300  ·  view source on GitHub ↗

RemoveOwner removes a partition owner. Returns true if the ring has been changed.

(id string)

Source from the content-addressed store, hash-verified

291
292// RemoveOwner removes a partition owner. Returns true if the ring has been changed.
293func (m *PartitionRingDesc) RemoveOwner(id string) bool {
294 if _, ok := m.Owners[id]; !ok {
295 return false
296 }
297
298 delete(m.Owners, id)
299 return true
300}
301
302// HasOwner returns whether a owner exists.
303func (m *PartitionRingDesc) HasOwner(id string) bool {

Callers 2

stoppingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected