diff --git a/db/db_impl.cc b/db/db_impl.cc index cb03d7ea6..bd9b222b3 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -590,7 +590,8 @@ void DBImpl::FindObsoleteFiles(DeletionState& deletion_state, env_->GetChildren(db_options_.db_paths[path_id].path, &files); // Ignore errors for (std::string file : files) { - deletion_state.candidate_files.emplace_back(file, path_id); + // TODO(icanadi) clean up this mess to avoid having one-off "/" prefixes + deletion_state.candidate_files.emplace_back("/" + file, path_id); } }