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

Function serverKeysPrefixFor

fdbclient/SystemData.cpp:434–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 return wr.toValue();
433}
434const Key serverKeysPrefixFor(UID serverID) {
435 BinaryWriter wr(Unversioned());
436 wr.serializeBytes(serverKeysPrefix);
437 wr << serverID;
438 wr.serializeBytes(LiteralStringRef("/"));
439 return wr.toValue();
440}
441UID serverKeysDecodeServer(const KeyRef& key) {
442 UID server_id;
443 BinaryReader rd(key.removePrefix(serverKeysPrefix), Unversioned());

Calls 3

UnversionedFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected