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

Function blobGranuleHistoryKeyFor

fdbclient/SystemData.cpp:1587–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1585}
1586
1587const Key blobGranuleHistoryKeyFor(KeyRangeRef const& range, Version version) {
1588 BinaryWriter wr(AssumeVersion(ProtocolVersion::withBlobGranule()));
1589 wr.serializeBytes(blobGranuleHistoryKeys.begin);
1590 wr << range;
1591 wr << bigEndian64(version);
1592 return wr.toValue();
1593}
1594
1595std::pair<KeyRange, Version> decodeBlobGranuleHistoryKey(const KeyRef& key) {
1596 KeyRangeRef keyRange;

Calls 3

AssumeVersionFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected