mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 20:16:43 +00:00
gossip: Insert with result.end() in get_supported_features
It is faster than result.begin(), suggested by Avi.
This commit is contained in:
@@ -1753,7 +1753,7 @@ std::set<sstring> gossiper::get_supported_features() const {
|
||||
std::set<sstring> result;
|
||||
std::set_intersection(features.begin(), features.end(),
|
||||
common_features.begin(), common_features.end(),
|
||||
std::inserter(result, result.begin()));
|
||||
std::inserter(result, result.end()));
|
||||
common_features = std::move(result);
|
||||
}
|
||||
common_features.erase("");
|
||||
|
||||
Reference in New Issue
Block a user