mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
This change introduces a new metric called tablet_count that is recalculated during construction of table object and on each call to table::update_effective_replication_map(). To get the count of tablet per current shard, tablet map is traversed and for each tablet_id tablet_map::get_shard() is called. Its return value is compared with this_shard_id(). The new metric is maintained and exposed only for tables that uses tablets. Refs: scylladb#16131 Signed-off-by: Patryk Wrobel <patryk.wrobel@scylladb.com> Closes scylladb/scylladb#17056