Commit c738aa24 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-20138 innodb.trx_id_future fails on big-endian

Skip the test on big-endian systems.
In MariaDB Server 10.0 and 10.1 (as well as MySQL 5.6),
the implementation of innodb_checksum_algorithm=crc32
wrongly assumes little-endian byte order.
parent eff898f2
......@@ -7,6 +7,16 @@
--source include/have_innodb.inc
--source include/not_embedded.inc
perl;
open(OUT, ">$ENV{MYSQLTEST_VARDIR}/log/check.txt") || die;
print OUT "--skip innodb_checksum_algorithm=crc32 needs little-endian\n"
unless unpack("L","macs")==unpack("N","scam");
close(OUT);
EOF
--source $MYSQLTEST_VARDIR/log/check.txt
--remove_file $MYSQLTEST_VARDIR/log/check.txt
let PAGE_SIZE=`select @@innodb_page_size`;
CREATE TABLE t1(a INT) row_format=redundant engine=innoDB;
......
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