diff --git a/storage/innobase/log/log0recv.cc b/storage/innobase/log/log0recv.cc index 1da6490cdc8..8fd5496d4ed 100644 --- a/storage/innobase/log/log0recv.cc +++ b/storage/innobase/log/log0recv.cc @@ -3785,7 +3785,7 @@ static dberr_t recv_recovery_begin(log_t &log, const lsn_t checkpoint_lsn) { bool finished = false; - while (!finished) { + while (!finished && !recv_sys->found_corrupt_log) { const lsn_t end_lsn = recv_read_log_seg(log, log.buf, start_lsn, start_lsn + RECV_SCAN_SIZE);