HasOwner returns whether a owner exists.
(id string)
| 301 | |
| 302 | // HasOwner returns whether a owner exists. |
| 303 | func (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. |
| 309 | func (m *PartitionRingDesc) PartitionOwnersCount(partitionID int32) int { |
no outgoing calls