Skip to content

Commit

Permalink
Revert "Include candidate files under options.db_log_dir in FindObsol…
Browse files Browse the repository at this point in the history
…eteFiles()"

This reverts commit 54153ab.
  • Loading branch information
siying committed Aug 13, 2014
1 parent 37c6740 commit 55935c8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions db/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -579,14 +579,6 @@ void DBImpl::FindObsoleteFiles(DeletionState& deletion_state,
deletion_state.candidate_files.emplace_back(log_file, 0);
}
}
// Add info log files in db_log_dir
if (options_.db_log_dir.empty() && options_.db_log_dir != dbname_) {
std::vector<std::string> info_log_files;
env_->GetChildren(options_.db_log_dir, &info_log_files); // Ignore errors
for (std::string log_file : info_log_files) {
deletion_state.candidate_files.emplace_back(log_file, 0);
}
}
}
}

Expand Down

0 comments on commit 55935c8

Please sign in to comment.