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

Function getShardMappingKey

fdbserver/KeyValueStoreShardedRocksDB.actor.cpp:163–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163std::string getShardMappingKey(KeyRef key, StringRef prefix) {
164 return prefix.toString() + key.toString();
165}
166
167std::vector<std::pair<KeyRange, std::string>> decodeShardMapping(const RangeResult& result, StringRef prefix) {
168 std::vector<std::pair<KeyRange, std::string>> shards;

Callers 1

persistRangeMappingMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected