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

Function decodeBlobGranuleHistoryKey

fdbclient/SystemData.cpp:1595–1603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593}
1594
1595std::pair<KeyRange, Version> decodeBlobGranuleHistoryKey(const KeyRef& key) {
1596 KeyRangeRef keyRange;
1597 Version version;
1598 BinaryReader reader(key.removePrefix(blobGranuleHistoryKeys.begin),
1599 AssumeVersion(ProtocolVersion::withBlobGranule()));
1600 reader >> keyRange;
1601 reader >> version;
1602 return std::make_pair(keyRange, bigEndian64(version));
1603}
1604
1605const KeyRange blobGranuleHistoryKeyRangeFor(KeyRangeRef const& range) {
1606 return KeyRangeRef(blobGranuleHistoryKeyFor(range, 0), blobGranuleHistoryKeyFor(range, MAX_VERSION));

Calls 2

AssumeVersionFunction · 0.85
removePrefixMethod · 0.45

Tested by

no test coverage detected