mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
gossip: Fix mark_dead
We should change the state stored in endpoint_state_map, not local variable.
This commit is contained in:
@@ -935,7 +935,7 @@ void gossiper::real_mark_alive(inet_address addr, endpoint_state local_state) {
|
||||
}
|
||||
}
|
||||
|
||||
void gossiper::mark_dead(inet_address addr, endpoint_state local_state) {
|
||||
void gossiper::mark_dead(inet_address addr, endpoint_state& local_state) {
|
||||
logger.trace("marking as down {}", addr);
|
||||
local_state.mark_dead();
|
||||
_live_endpoints.erase(addr);
|
||||
|
||||
@@ -351,7 +351,7 @@ private:
|
||||
|
||||
void real_mark_alive(inet_address addr, endpoint_state local_state);
|
||||
|
||||
void mark_dead(inet_address addr, endpoint_state local_state);
|
||||
void mark_dead(inet_address addr, endpoint_state& local_state);
|
||||
|
||||
/**
|
||||
* This method is called whenever there is a "big" change in ep state (a generation change for a known node).
|
||||
|
||||
Reference in New Issue
Block a user