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

Method PartitionsCount

ring/partition_ring.go:328–330  ·  view source on GitHub ↗

PartitionsCount returns the number of partitions in the ring.

()

Source from the content-addressed store, hash-verified

326
327// PartitionsCount returns the number of partitions in the ring.
328func (r *PartitionRing) PartitionsCount() int {
329 return len(r.desc.Partitions)
330}
331
332// MaxPartitionID returns the highest partition ID in the ring, or -1 if there are no partitions.
333func (r *PartitionRing) MaxPartitionID() int32 {

Calls

no outgoing calls