MCPcopy Create free account
hub / github.com/apple/foundationdb / filterLocalityDataForPolicy

Function filterLocalityDataForPolicy

fdbrpc/ReplicationUtils.cpp:1047–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045
1046namespace {
1047void filterLocalityDataForPolicy(const std::set<std::string>& keys, LocalityData* ld) {
1048 for (auto iter = ld->_data.begin(); iter != ld->_data.end();) {
1049 auto prev = iter;
1050 iter++;
1051 if (keys.find(prev->first.toString()) == keys.end()) {
1052 ld->_data.erase(prev);
1053 }
1054 }
1055}
1056} // namespace
1057
1058void filterLocalityDataForPolicyDcAndProcess(Reference<IReplicationPolicy> policy, LocalityData* ld) {

Callers 5

LogSetMethod · 0.85
newEpochMethod · 0.85

Calls 6

beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
toStringMethod · 0.45
eraseMethod · 0.45
attributeKeysMethod · 0.45

Tested by

no test coverage detected