Skip to content

Commit

Permalink
MDEV-13830 Assertion failed: recv_sys->mlog_checkpoint_lsn <= recv_sy…
Browse files Browse the repository at this point in the history
…s->recovered_lsn

There can be multiple MLOG_CHECKPOINT record for the same checkpoint.
During recovery, InnoDB could encounter the previous MLOG_CHECKPOINT
for the checkpoint lsn. So the assertion
mlog_checkpoint_lsn <= recovered_lsn is wrong.
  • Loading branch information
Thirunarayanan committed Jul 22, 2020
1 parent 6898eae commit 2a3bc0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions storage/innobase/log/log0recv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2917,8 +2917,9 @@ bool recv_parse_log_recs(lsn_t checkpoint_lsn, store_t* store,

if (lsn == checkpoint_lsn) {
if (recv_sys->mlog_checkpoint_lsn) {
ut_ad(recv_sys->mlog_checkpoint_lsn
<= recv_sys->recovered_lsn);
/* There can be multiple
MLOG_CHECKPOINT lsn for the
same checkpoint. */
break;
}
recv_sys->mlog_checkpoint_lsn
Expand Down

0 comments on commit 2a3bc0b

Please sign in to comment.