From ee59baf6fcdb33ab133bb78efcae0fd16eb7eb8a Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Tue, 28 Jan 2025 18:44:07 +0200 Subject: [PATCH] gossiper: drop old shadow round code It is no longer used. It was replaced with explicit GOSSIP_GET_ENDPOINT_STATES verb in cd7d64f588e3a0a09a792589196786495186b552 which is in scylla-4.3.0 --- gms/gossiper.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gms/gossiper.cc b/gms/gossiper.cc index 7b34f7e266..6d4d6e938a 100644 --- a/gms/gossiper.cc +++ b/gms/gossiper.cc @@ -1981,17 +1981,6 @@ void gossiper::send_all(gossip_digest& g_digest, void gossiper::examine_gossiper(utils::chunked_vector& g_digest_list, utils::chunked_vector& delta_gossip_digest_list, std::map& delta_ep_state_map) const { - if (g_digest_list.size() == 0) { - /* we've been sent a *completely* empty syn, which should normally - * never happen since an endpoint will at least send a syn with - * itself. If this is happening then the node is attempting shadow - * gossip, and we should reply with everything we know. - */ - logger.debug("Shadow request received, adding all states"); - for (auto& entry : _endpoint_state_map) { - g_digest_list.emplace_back(entry.first); - } - } for (gossip_digest& g_digest : g_digest_list) { auto remote_generation = g_digest.get_generation(); auto max_remote_version = g_digest.get_max_version();