Skip to content

Commit 4808177

Browse files
committed
Revert "Include candidate files under options.db_log_dir in FindObsoleteFiles()"
This reverts commit 54153ab.
1 parent 0138b8e commit 4808177

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

db/db_impl.cc

-8
Original file line numberDiff line numberDiff line change
@@ -598,14 +598,6 @@ void DBImpl::FindObsoleteFiles(DeletionState& deletion_state,
598598
deletion_state.candidate_files.emplace_back(log_file, 0);
599599
}
600600
}
601-
// Add info log files in db_log_dir
602-
if (options_.db_log_dir.empty() && options_.db_log_dir != dbname_) {
603-
std::vector<std::string> info_log_files;
604-
env_->GetChildren(options_.db_log_dir, &info_log_files); // Ignore errors
605-
for (std::string log_file : info_log_files) {
606-
deletion_state.candidate_files.emplace_back(log_file, 0);
607-
}
608-
}
609601
}
610602
}
611603

0 commit comments

Comments
 (0)