diff --git a/fdbbackup/FileConverter.actor.cpp b/fdbbackup/FileConverter.actor.cpp index 67cd4738b6..006b311f87 100644 --- a/fdbbackup/FileConverter.actor.cpp +++ b/fdbbackup/FileConverter.actor.cpp @@ -68,7 +68,7 @@ void printLogFiles(std::string msg, const std::vector& files) { std::vector getRelevantLogFiles(const std::vector& files, Version begin, Version end) { std::vector filtered; for (const auto& file : files) { - if (file.beginVersion <= end && file.endVersion >= begin && file.tagId >= 0) { + if (file.beginVersion <= end && file.endVersion >= begin && file.tagId >= 0 && file.fileSize > 0) { filtered.push_back(file); } } @@ -76,7 +76,7 @@ std::vector getRelevantLogFiles(const std::vector& files, Vers // Remove duplicates. This is because backup workers may store the log for // old epochs successfully, but do not update the progress before another - // recovery happened. As a result, next epoch will retry and creates + // recovery happened. As a result, next epoch will retry and creates // duplicated log files. std::vector sorted; int i = 0;