mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
17 lines
557 B
Text
17 lines
557 B
Text
#
|
|
# Testing robustness against random compression failures
|
|
#
|
|
CREATE TABLE t1(id INT AUTO_INCREMENT PRIMARY KEY, msg VARCHAR(255), KEY msg_i(msg)) ENGINE=INNODB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`msg` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `msg_i` (`msg`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8
|
|
SET GLOBAL innodb_simulate_comp_failures = 25;
|
|
COMMIT;
|
|
SELECT COUNT(id) FROM t1;
|
|
COUNT(id)
|
|
1500
|