mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-05 22:43:15 +00:00
abstract_replication_strategy: get rid of legacy get_natural_endpoints
implementation Now that all users of it were converted to use the effective_replication_map, the legacy abstract_replication_strategy::get_natural_endpoints method can be deleted. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
@@ -81,10 +81,6 @@ inet_address_vector_replica_set abstract_replication_strategy::do_calculate_natu
|
||||
}
|
||||
}
|
||||
|
||||
inet_address_vector_replica_set abstract_replication_strategy::get_natural_endpoints(const token& search_token, can_yield can_yield) {
|
||||
return do_get_natural_endpoints(search_token, *_shared_token_metadata.get(), can_yield);
|
||||
}
|
||||
|
||||
inet_address_vector_replica_set abstract_replication_strategy::do_get_natural_endpoints(const token& search_token, const token_metadata& tm, can_yield can_yield) {
|
||||
const token& key_token = tm.first_token(search_token);
|
||||
auto& cached_endpoints = get_cached_endpoints(tm);
|
||||
|
||||
@@ -111,7 +111,6 @@ public:
|
||||
const shared_token_metadata& stm,
|
||||
const replication_strategy_config_options& config_options);
|
||||
static void validate_replication_factor(sstring rf);
|
||||
inet_address_vector_replica_set get_natural_endpoints(const token& search_token, can_yield = can_yield::no);
|
||||
virtual inet_address_vector_replica_set get_natural_endpoints(const token& search_token, const effective_replication_map& erm) const;
|
||||
inet_address_vector_replica_set get_natural_endpoints_without_node_being_replaced(const token& search_token, can_yield = can_yield::no);
|
||||
virtual void validate_options() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user