Skip to content

Commit

Permalink
MDEV-20138 innodb.trx_id_future fails on big-endian
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dr-m committed Aug 13, 2019
1 parent eff898f commit c738aa2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mysql-test/suite/innodb/t/trx_id_future.test
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c738aa2

Please sign in to comment.