token_metadata: drop unused method get_endpoint_to_token_map_for_reading
This commit is contained in:
@@ -268,8 +268,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** @return an endpoint to token multimap representation of tokenToEndpointMap (a copy) */
|
|
||||||
std::multimap<inet_address, token> get_endpoint_to_token_map_for_reading() const;
|
|
||||||
/**
|
/**
|
||||||
* @return a (stable copy, won't be modified) Token to Endpoint map for all the normal and bootstrapping nodes
|
* @return a (stable copy, won't be modified) Token to Endpoint map for all the normal and bootstrapping nodes
|
||||||
* in the cluster.
|
* in the cluster.
|
||||||
@@ -846,14 +844,6 @@ std::map<token, inet_address> token_metadata_impl::get_normal_and_bootstrapping_
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::multimap<inet_address, token> token_metadata_impl::get_endpoint_to_token_map_for_reading() const {
|
|
||||||
std::multimap<inet_address, token> cloned;
|
|
||||||
for (const auto& x : _token_to_endpoint_map) {
|
|
||||||
cloned.emplace(x.second, x.first);
|
|
||||||
}
|
|
||||||
return cloned;
|
|
||||||
}
|
|
||||||
|
|
||||||
topology_change_info::topology_change_info(token_metadata target_token_metadata_,
|
topology_change_info::topology_change_info(token_metadata target_token_metadata_,
|
||||||
std::optional<token_metadata> base_token_metadata_,
|
std::optional<token_metadata> base_token_metadata_,
|
||||||
std::vector<dht::token> all_tokens_,
|
std::vector<dht::token> all_tokens_,
|
||||||
@@ -1154,11 +1144,6 @@ token_metadata::set_read_new(read_new_t read_new) {
|
|||||||
_impl->set_read_new(read_new);
|
_impl->set_read_new(read_new);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::multimap<inet_address, token>
|
|
||||||
token_metadata::get_endpoint_to_token_map_for_reading() const {
|
|
||||||
return _impl->get_endpoint_to_token_map_for_reading();
|
|
||||||
}
|
|
||||||
|
|
||||||
std::map<token, inet_address>
|
std::map<token, inet_address>
|
||||||
token_metadata::get_normal_and_bootstrapping_token_to_endpoint_map() const {
|
token_metadata::get_normal_and_bootstrapping_token_to_endpoint_map() const {
|
||||||
return _impl->get_normal_and_bootstrapping_token_to_endpoint_map();
|
return _impl->get_normal_and_bootstrapping_token_to_endpoint_map();
|
||||||
|
|||||||
@@ -271,8 +271,6 @@ public:
|
|||||||
using read_new_t = bool_class<class read_new_tag>;
|
using read_new_t = bool_class<class read_new_tag>;
|
||||||
void set_read_new(read_new_t value);
|
void set_read_new(read_new_t value);
|
||||||
|
|
||||||
/** @return an endpoint to token multimap representation of tokenToEndpointMap (a copy) */
|
|
||||||
std::multimap<inet_address, token> get_endpoint_to_token_map_for_reading() const;
|
|
||||||
/**
|
/**
|
||||||
* @return a (stable copy, won't be modified) Token to Endpoint map for all the normal and bootstrapping nodes
|
* @return a (stable copy, won't be modified) Token to Endpoint map for all the normal and bootstrapping nodes
|
||||||
* in the cluster.
|
* in the cluster.
|
||||||
|
|||||||
Reference in New Issue
Block a user