HasPartition returns whether a partition exists.
(id int32)
| 261 | |
| 262 | // HasPartition returns whether a partition exists. |
| 263 | func (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. |
no outgoing calls