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

Function blobGranuleMergeKeyFor

fdbclient/SystemData.cpp:1499–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
1501 // data though since it didn't exist before
1502 BinaryWriter wr(AssumeVersion(ProtocolVersion::withBlobGranule()));
1503 wr.serializeBytes(blobGranuleMergeKeys.begin);
1504 wr << mergeGranuleID;
1505
1506 return wr.toValue();
1507}
1508
1509UID decodeBlobGranuleMergeKey(KeyRef const& key) {
1510 UID mergeGranuleID;

Calls 3

AssumeVersionFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected