diff --git a/db/db_impl.cc b/db/db_impl.cc index fe676b40d1..d4ce7476ce 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -934,9 +934,7 @@ Status DBImpl::FindProbableWALFiles(std::vector* const allLogs, if (!s.ok()) { if (CheckFileExistsAndEmpty(allLogs->at(mid))) { allLogs->erase(allLogs->begin() + mid); - if (mid == start) { - ++start; - } + --end; continue; } return s;