# stress tests: blobs=yes, crash=no, compress=yes

# Don't test this under valgrind, memory leaks will occur
--source include/not_valgrind.inc
--source include/have_innodb.inc
--source include/master-slave.inc
--source include/big_test.inc

SET GLOBAL innodb_file_format=Barracuda;

let $MYSQL_BASEDIR = `SELECT @@BASEDIR`;

# Too heavy for testing in debug mode
--source include/have_nodebug.inc

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings

# create the actual table
CREATE TABLE t1(id INT AUTO_INCREMENT PRIMARY KEY,
                msg_prefix VARCHAR(255),
                msg longtext,
                msg_length int,
                msg_checksum varchar(128),
                KEY msg_i(msg_prefix))
ENGINE=INNODB
ROW_FORMAT=COMPRESSED
KEY_BLOCK_SIZE=1;

let $use_blob=1;
let $do_compress=1;
let $do_crash=0;

--let $num_crashes = 1
--let $num_workers = 20
--let $num_transactions = 10000
--let $kill_db_after = 0
--let $num_records = 10000
--let $max_rows = 200000

--source suite/innodb_stress/include/innodb_stress.inc

SET GLOBAL innodb_file_format=Default;
