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

Method addBlockKVPairs

fdbbackup/FileDecoder.actor.cpp:444–449  ·  view source on GitHub ↗

Add chunks to mutationBlocksByVersion

Source from the content-addressed store, hash-verified

442
443 // Add chunks to mutationBlocksByVersion
444 void addBlockKVPairs(VectorRef<KeyValueRef> chunks) {
445 for (auto& kv : chunks) {
446 auto versionAndChunkNumber = fileBackup::decodeMutationLogKey(kv.key);
447 mutationBlocksByVersion[versionAndChunkNumber.first].addChunk(versionAndChunkNumber.second, kv);
448 }
449 }
450
451 // Reads a file block, decodes it into key/value pairs, and stores these pairs.
452 ACTOR static Future<Void> readAndDecodeFile(DecodeProgress* self) {

Callers 1

readAndDecodeFileMethod · 0.95

Calls 2

decodeMutationLogKeyFunction · 0.85
addChunkMethod · 0.80

Tested by

no test coverage detected