Skip to content

Commit

Permalink
Check for s.IsCorruption() also
Browse files Browse the repository at this point in the history
  • Loading branch information
anand1976 committed Apr 18, 2024
1 parent 5479358 commit 362297a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/db_impl/db_impl_open.cc
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,8 @@ Status DBImpl::Recover(
// a corrupt MANIFEST file (could result in either the log::Reader
// detecting a corrupt record, or SST files not found error due to
// discarding badly formed tail records)
if (!is_retry && (desc_status.IsCorruption() || s.IsNotFound()) &&
if (!is_retry &&
(desc_status.IsCorruption() || s.IsNotFound() || s.IsCorruption()) &&
CheckFSFeatureSupport(fs_.get(),
FSSupportedOps::kVerifyAndReconstructRead)) {
*can_retry = true;
Expand Down

0 comments on commit 362297a

Please sign in to comment.