From 94fcba5662dbe7edfbd21b5560a2ec61d7f567c8 Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Wed, 7 Jun 2023 18:05:16 +0300 Subject: [PATCH] storage_proxy: remove unused variable --- service/storage_proxy.cc | 4 +--- service/storage_proxy.hh | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/service/storage_proxy.cc b/service/storage_proxy.cc index 16e795bb96..073aa1cc29 100644 --- a/service/storage_proxy.cc +++ b/service/storage_proxy.cc @@ -3360,8 +3360,6 @@ storage_proxy::get_paxos_participants(const sstring& ks_name, const locator::eff cl_for_paxos, participants + 1, live_endpoints.size()); } - bool dead = participants != live_endpoints.size(); - // Apart from the ballot, paxos_state::prepare() also sends the current value of the requested key. // If the values received from different replicas match, we skip a separate query stage thus saving // one network round trip. To generate less traffic, only closest replicas send data, others send @@ -3369,7 +3367,7 @@ storage_proxy::get_paxos_participants(const sstring& ks_name, const locator::eff // list of participants by proximity to this instance. sort_endpoints_by_proximity(erm.get_topology(), live_endpoints); - return paxos_participants{std::move(live_endpoints), required_participants, dead}; + return paxos_participants{std::move(live_endpoints), required_participants}; } diff --git a/service/storage_proxy.hh b/service/storage_proxy.hh index e8f3a40e72..638c82618a 100644 --- a/service/storage_proxy.hh +++ b/service/storage_proxy.hh @@ -203,7 +203,6 @@ public: inet_address_vector_replica_set endpoints; // How many participants are required for a quorum (i.e. is it SERIAL or LOCAL_SERIAL). size_t required_participants; - bool has_dead_endpoints; }; gms::feature_service& features() noexcept { return _features; }