storage_proxy: remove unused variable

This commit is contained in:
Gleb Natapov
2023-06-07 18:05:16 +03:00
parent caee26ab4f
commit 94fcba5662
2 changed files with 1 additions and 4 deletions

View File

@@ -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};
}

View File

@@ -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; }