mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 05:26:58 +00:00
Today, owner shards can only be computed for a fully loaded SSTable. For upcoming changes in the SSTable loader, we want to load the minimum from disk to be able to compute the set of shards owning the SSTable. If sharding metadata is available, it means we only need to read TOC and Scylla components. Otherwise, Summary must be read to provide first and last keys for compute_shards_for_this_sstable() to operate on them instead. Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>