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

Function encodeExcludedLocalityKey

fdbclient/SystemData.cpp:880–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878 return key.removePrefix(excludedLocalityPrefix).toString();
879}
880std::string encodeExcludedLocalityKey(std::string const& locality) {
881 return excludedLocalityPrefix.toString() + locality;
882}
883
884const KeyRangeRef failedServersKeys(LiteralStringRef("\xff/conf/failed/"), LiteralStringRef("\xff/conf/failed0"));
885const KeyRef failedServersPrefix = failedServersKeys.begin;

Callers 5

excludeLocalitiesFunction · 0.85
isExcludedLocalityMethod · 0.85
isMachineExcludedMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected