Add chunks to mutationBlocksByVersion
| 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) { |
no test coverage detected