Skip to content

Commit 1067046

Browse files
committed
MDEV-34830 fixup: Relax an assertion
It is possible that recv_sys.scanned_lsn is ahead of recv_sys.recovered_lsn by a few 512-byte log blocks in case the last mini-transaction in the log had not been written out completely before the server was killed. This is occasionally the case when running the test innodb.innodb-32k-crash.
1 parent bea4adc commit 1067046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/innobase/log/log0recv.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4671,7 +4671,8 @@ recv_recovery_from_checkpoint_start(lsn_t flush_lsn)
46714671
rescan = true;
46724672
}
46734673

4674-
ut_ad(log_sys.get_lsn() >= recv_sys.scanned_lsn);
4674+
ut_ad(log_sys.get_lsn() >= recv_sys.scanned_lsn
4675+
|| log_sys.get_lsn() >= recv_sys.recovered_lsn);
46754676

46764677
recv_sys.parse_start_lsn = checkpoint_lsn;
46774678

0 commit comments

Comments
 (0)