mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
2ef7a5a13a
This is basically port of WL6045:Improve Innochecksum with some code refactoring on innochecksum. Added page0size.h include from 10.2 to make 10.1 vrs 10.2 innochecksum as identical as possible. Added page 0 checksum checking and if that fails whole test fails.
22 lines
731 B
PHP
22 lines
731 B
PHP
--echo ===> Testing size=$size
|
|
--disable_warnings
|
|
--eval CREATE TABLE t1(id INT AUTO_INCREMENT PRIMARY KEY, msg VARCHAR(255)) ENGINE=INNODB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=$size
|
|
--enable_warnings
|
|
|
|
insert into t1 values(1,"I");
|
|
insert into t1 values(2,"AM");
|
|
insert into t1 values(3,"COMPRESSED");
|
|
|
|
--source include/shutdown_mysqld.inc
|
|
|
|
#STOP;
|
|
|
|
--exec $INNOCHECKSUM $MYSQLD_DATADIR/test/t1.ibd
|
|
--exec $INNOCHECKSUM --write=crc32 $MYSQLD_DATADIR/test/t1.ibd
|
|
--exec $INNOCHECKSUM --strict-check=crc32 $MYSQLD_DATADIR/test/t1.ibd
|
|
--exec $INNOCHECKSUM --write=none $MYSQLD_DATADIR/test/t1.ibd
|
|
--exec $INNOCHECKSUM --strict-check=none $MYSQLD_DATADIR/test/t1.ibd
|
|
|
|
--source include/start_mysqld.inc
|
|
select * from t1;
|
|
drop table t1;
|