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

Function tLogDatacentersKeyFor

fdbclient/SystemData.cpp:731–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729const KeyRef tLogDatacentersPrefix = tLogDatacentersKeys.begin;
730
731const Key tLogDatacentersKeyFor(Optional<Value> dcID) {
732 BinaryWriter wr(AssumeVersion(currentProtocolVersion()));
733 wr.serializeBytes(tLogDatacentersKeys.begin);
734 wr << dcID;
735 return wr.toValue();
736}
737Optional<Value> decodeTLogDatacentersKey(KeyRef const& key) {
738 Optional<Value> dcID;
739 BinaryReader rd(key.removePrefix(tLogDatacentersKeys.begin), AssumeVersion(currentProtocolVersion()));

Callers 1

Calls 4

AssumeVersionFunction · 0.85
currentProtocolVersionFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected