Commit 21239bb0 authored by Marko Mäkelä's avatar Marko Mäkelä

After-merge fix to innodb.log_corruption

parent 6dd302d1
...@@ -124,8 +124,8 @@ SELECT COUNT(*) FROM INFORMATION_SCHEMA.ENGINES ...@@ -124,8 +124,8 @@ SELECT COUNT(*) FROM INFORMATION_SCHEMA.ENGINES
WHERE engine = 'innodb' WHERE engine = 'innodb'
AND support IN ('YES', 'DEFAULT', 'ENABLED'); AND support IN ('YES', 'DEFAULT', 'ENABLED');
COUNT(*) COUNT(*)
0 1
FOUND 1 /InnoDB: Upgrading redo log:/ in mysqld.1.err FOUND 2 /InnoDB: Upgrading redo log:/ in mysqld.1.err
# Minimal MariaDB 10.1.21 encrypted redo log # Minimal MariaDB 10.1.21 encrypted redo log
SELECT COUNT(*) `1` FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb' SELECT COUNT(*) `1` FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
AND support IN ('YES', 'DEFAULT', 'ENABLED'); AND support IN ('YES', 'DEFAULT', 'ENABLED');
......
...@@ -428,8 +428,15 @@ print OUT pack("Nx[5]nx[5]", 1, 0x1286); ...@@ -428,8 +428,15 @@ print OUT pack("Nx[5]nx[5]", 1, 0x1286);
print OUT "ibbackup was here!!!1!"; print OUT "ibbackup was here!!!1!";
print OUT pack("x[470]N", 0x52b54540); print OUT pack("x[470]N", 0x52b54540);
# In encryption.innodb_log_corruption the previous step would # In encryption.innodb_log_corruption the previous step would
# replace the block with an encrypted one. Rewrite it as it was. # replace the block with an encrypted one and update the checkpoint.
die unless seek(OUT, 0x800, 0); # Restore them.
# invalid (all-zero) checkpoint page 1 and an empty log page
print OUT chr(0) x 1024;
# valid checkpoint block 2
print OUT pack("x[12]NNNx[264]", 0x12860c, 0, 0x80c);
# pointer to the MLOG_CHECKPOINT record, and checkpoint page checksum
print OUT pack("H*x[204]NNN", "590DBAACFE922582", 0x128612, 0, 0x101741b);
# log page
print OUT pack("NnnNx[496]N", 0x80000944, 12, 12, 1, 0x46c8a2a2); print OUT pack("NnnNx[496]N", 0x80000944, 12, 12, 1, 0x46c8a2a2);
close OUT or die; close OUT or die;
EOF EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment