Skip to content

Commit

Permalink
clear is_db_stopped_ as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykorean committed Oct 31, 2023
1 parent 6bc6d9d commit df81ab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/error_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ Status ErrorHandler::ClearBGError() {
// old_bg_error is only for notifying listeners, so may not be checked
old_bg_error.PermitUncheckedError();
// Clear and check the recovery IO and BG error
is_db_stopped_.store(false, std::memory_order_release);
bg_error_ = Status::OK();
recovery_error_ = IOStatus::OK();
bg_error_.PermitUncheckedError();
Expand Down

0 comments on commit df81ab4

Please sign in to comment.