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

Function logRangesEncodeValue

fdbclient/SystemData.cpp:1116–1120  ·  view source on GitHub ↗

Returns the encoded key value comprised of the end key and destination path

Source from the content-addressed store, hash-verified

1114
1115// Returns the encoded key value comprised of the end key and destination path
1116Key logRangesEncodeValue(KeyRef keyEnd, KeyRef destPath) {
1117 BinaryWriter wr(IncludeVersion(ProtocolVersion::withLogRangeEncodeValue()));
1118 wr << std::make_pair(keyEnd, destPath);
1119 return wr.toValue();
1120}
1121
1122// \xff/logRanges/[16-byte UID][begin key] := serialize( make_pair([end key], [destination key prefix]),
1123// IncludeVersion() )

Callers 2

startMutationLogsMethod · 0.85

Calls 2

IncludeVersionFunction · 0.85
toValueMethod · 0.45

Tested by

no test coverage detected