RemoveOwner removes a partition owner. Returns true if the ring has been changed.
(id string)
| 291 | |
| 292 | // RemoveOwner removes a partition owner. Returns true if the ring has been changed. |
| 293 | func (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. |
| 303 | func (m *PartitionRingDesc) HasOwner(id string) bool { |
no outgoing calls
no test coverage detected