Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkr committed Apr 24, 2024
1 parent 5e2140b commit 0e2f7b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/db_impl/db_impl_compaction_flush.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2175,9 +2175,6 @@ Status DBImpl::RunManualCompaction(
Status::Incomplete(Status::SubCode::kManualCompactionPaused);
}
}
if (!manual.done) {
bg_cv_.Wait();
}
if (manual_compaction_paused_ > 0 && scheduled && !unscheduled) {
assert(thread_pool_priority != Env::Priority::TOTAL);
// unschedule all manual compactions
Expand All @@ -2195,6 +2192,9 @@ Status DBImpl::RunManualCompaction(
unscheduled = true;
TEST_SYNC_POINT("DBImpl::RunManualCompaction:Unscheduled");
}
if (!manual.done) {
bg_cv_.Wait();
}
if (scheduled && manual.incomplete == true) {
assert(!manual.in_progress);
scheduled = false;
Expand Down

0 comments on commit 0e2f7b3

Please sign in to comment.