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

Function blobGranuleSplitKeyRangeFor

fdbclient/SystemData.cpp:1490–1497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1488}
1489
1490const KeyRange blobGranuleSplitKeyRangeFor(UID const& parentGranuleID) {
1491 BinaryWriter wr(AssumeVersion(ProtocolVersion::withBlobGranule()));
1492 wr.serializeBytes(blobGranuleSplitKeys.begin);
1493 wr << parentGranuleID;
1494
1495 Key startKey = wr.toValue();
1496 return KeyRangeRef(startKey, strinc(startKey));
1497}
1498
1499const Key blobGranuleMergeKeyFor(UID const& mergeGranuleID) {
1500 // TODO should we bump this assumed version to 7.2 as blob granule merging is not in 7.1? 7.1 won't try to read this

Calls 5

AssumeVersionFunction · 0.85
KeyRangeRefClass · 0.50
strincFunction · 0.50
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected