Filter by version for mutations as well

This commit is contained in:
Jingyu Zhou 2021-07-30 17:45:21 -07:00
parent 1a4f6a4ccf
commit 52368eafbc
1 changed files with 4 additions and 0 deletions

View File

@ -578,6 +578,10 @@ ACTOR Future<Void> decode_logs(DecodeParams params) {
wait(progress.openFile(container));
while (!progress.finished()) {
VersionedMutations vms = wait(progress.getNextBatch());
if (vms.version < params.beginVersionFilter || vms.version >= params.endVersionFilter) {
continue;
}
for (const auto& m : vms.mutations) {
if (params.prefix.empty()) { // no filtering
std::cout << vms.version << " " << m.toString() << "\n";