mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 17:40:34 +00:00
This patch adds a method get_ranges() to replication-strategy. It returns the list of token ranges held by the given endpoint. It will be used by the replication code, which needs to know in particular which token ranges are held by *this* node. This function is the analogue of Origin's getAddressRanges().get(endpoint). As in Origin, also here the implementation is not meant to be efficient, and will not be used in the fast path. Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>