From d666fbfe8f387335733632a44aa82eb503a59a7e Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Tue, 22 Aug 2023 09:52:15 +0300 Subject: [PATCH] gossiper: run: no need to replicate live_endpoints As asias@scylladb.com noticed, after the previous patch that calls replicate_live_endpoints_on_change in mutate_live_and_unreachable_endpoints, _live_endpoints are always updated on all shards when they change, so there's no need anymore to replicate them here. Signed-off-by: Benny Halevy --- gms/gossiper.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gms/gossiper.cc b/gms/gossiper.cc index eb06f44687..846ca12e74 100644 --- a/gms/gossiper.cc +++ b/gms/gossiper.cc @@ -1064,12 +1064,6 @@ void gossiper::run() { do_status_check().get(); } - - { - auto lock = lock_endpoint_update_semaphore().get(); - replicate_live_endpoints_on_change().get(); - } - }).then_wrapped([this] (auto&& f) { try { f.get();