Skip to content

Commit

Permalink
reset seen error when resume succeed.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyichao committed Jun 14, 2024
1 parent 13c758f commit 9f3109f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/db_impl/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ Status DBImpl::ResumeImpl(DBRecoverContext context) {
// finish. Those previouly waiting threads can now proceed, which may
// include closing the db.
s = error_handler_.ClearBGError();
log_write_mutex_.Lock();
for (auto& log : logs_) {
log.writer.file()->reset_seen_error();
}
log_write_mutex_.Unlock();
} else {
// NOTE: this is needed to pass ASSERT_STATUS_CHECKED
// in the DBSSTTest.DBWithMaxSpaceAllowedRandomized test.
Expand Down

0 comments on commit 9f3109f

Please sign in to comment.