mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 19:25:52 +08:00
Ignore mutation logs of size 0 in converter
This commit is contained in:
parent
d0a24dd20d
commit
ca1a4ef9fd
@ -68,7 +68,7 @@ void printLogFiles(std::string msg, const std::vector<LogFile>& files) {
|
|||||||
std::vector<LogFile> getRelevantLogFiles(const std::vector<LogFile>& files, Version begin, Version end) {
|
std::vector<LogFile> getRelevantLogFiles(const std::vector<LogFile>& files, Version begin, Version end) {
|
||||||
std::vector<LogFile> filtered;
|
std::vector<LogFile> filtered;
|
||||||
for (const auto& file : files) {
|
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);
|
filtered.push_back(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user