forked from scylladb/scylladb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Simplify gossiper state map API" from Pavel E
" There's a enpoint->state map member of the gossiper class. First ugly thing about it is that the member is public. Next, there's a whole bunch of helpers around that map that export various bits of information from it. All of those helpers reshard to shard-0 to read from the state mape ignoring the fact that the map is replicated on all shards internally. Also, some of those helpers effectively duplicate each other for no real gain. Finally, most of them are specific to api/ code, and open-coding them often makes api/ handlers shorter and simpler. This set removes the unused, api-only or trivial state map accessors and marks the state map itself private (underscore prefix included). tests: https://jenkins.scylladb.com/job/releng/job/Scylla-CI/233/ " * 'br-gossiper-sanitize-api-2' of https://github.com/xemul/scylla: gossiper: Add underscores to new private members code: Indentation fix after previous patch gossiper, code: Relax get_up/down/all_counters() helpers api: Fix indentation after previous patch gossiper, api: Remove get_arrival_samples() gossiper, api: Remove get/set phi convict threshold helpers gossiper, api: Move get_simple_states() into API code gossiper: In-line std::optional<> get_endpoint_state_for_endpoint() overload gossiper, api: Remove get_endpoint_state() helpers gossiper: Make state and locks maps private gossiper: Remove dead code
- Loading branch information
Showing
9 changed files
with
100 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.