diff --git a/db/db_impl.cc b/db/db_impl.cc index 8e49af5906..9d68f70106 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1294,6 +1294,7 @@ Status DBImpl::BackgroundCompaction(bool* madeProgress, versions_->ReleaseCompactionFiles(c.get(), status); *madeProgress = true; } else { + MaybeScheduleCompaction(); // do more compaction work in parallel. CompactionState* compact = new CompactionState(c.get()); status = DoCompactionWork(compact); CleanupCompaction(compact);