callmtr.add_suppression("InnoDB: Are you sure you are using the right ib_logfiles to start up the database\\? Log sequence number in the ib_logfiles is 1213964,");
callmtr.add_suppression("InnoDB: Log file .*ib_logfile1 is of different size 1048576 bytes than other log files 2097152 bytes!");
--enable_query_log
letbugdir=$MYSQLTEST_VARDIR/tmp/log_corruption;
...
...
@@ -132,6 +133,9 @@ let SEARCH_PATTERN=Plugin 'InnoDB' registration as a STORAGE ENGINE failed;
--echo# redo log from before MariaDB 10.2.2, with corrupted log block
--remove_file$bugdir/ib_logfile0
--move_file$bugdir/ib_logfile$bugdir/ib_logfile0
# Create a dummy second redo log file that does not contain payload.
--copy_file$bugdir/ib_logfile0$bugdir/ib_logfile1
perl;
dieunlessopenOUT,"+<","$ENV{bugdir}/ib_logfile0";
binmodeOUT;
...
...
@@ -164,6 +168,128 @@ AND support IN ('YES', 'DEFAULT', 'ENABLED');
--sourceinclude/search_pattern_in_file.inc
--let$restart_parameters=$dirs
--echo# Corrupted multi-file redo log from before MariaDB 10.2.2