snitch: Remove gossip_snitch_info()
No longer in use Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
@@ -118,13 +118,6 @@ bool snitch_base::has_remote_node(inet_address_vector_replica_set& l) {
|
||||
return false;
|
||||
}
|
||||
|
||||
future<> snitch_base::gossip_snitch_info(std::list<std::pair<gms::application_state, gms::versioned_value>> info) {
|
||||
auto& gossiper = gms::get_local_gossiper();
|
||||
info.emplace_back(gms::application_state::DC, gms::versioned_value::datacenter(_my_dc));
|
||||
info.emplace_back(gms::application_state::RACK, gms::versioned_value::rack(_my_rack));
|
||||
return gossiper.add_local_application_state(std::move(info));
|
||||
}
|
||||
|
||||
std::list<std::pair<gms::application_state, gms::versioned_value>> snitch_base::get_app_states() const {
|
||||
return {
|
||||
{gms::application_state::DC, gms::versioned_value::datacenter(_my_dc)},
|
||||
|
||||
@@ -177,8 +177,6 @@ public:
|
||||
return make_ready_future<>();
|
||||
}
|
||||
|
||||
virtual future<> gossip_snitch_info(std::list<std::pair<gms::application_state, gms::versioned_value>> info) = 0;
|
||||
|
||||
virtual snitch_signal_connection_t when_reconfigured(snitch_signal_slot_t& slot) {
|
||||
// no updates by default
|
||||
return snitch_signal_connection_t();
|
||||
@@ -425,7 +423,6 @@ public:
|
||||
inet_address_vector_replica_set& l1,
|
||||
inet_address_vector_replica_set& l2) override;
|
||||
|
||||
virtual future<> gossip_snitch_info(std::list<std::pair<gms::application_state, gms::versioned_value>> info) override;
|
||||
virtual std::list<std::pair<gms::application_state, gms::versioned_value>> get_app_states() const override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user