Debian Codegraph @

mysql-test/suite/innodb/t/zlob_rollback_crash_2.test

raw
1 --source include/have_debug.inc
2 --source include/have_innodb_max_16k.inc
3
4 # Valgrind can hang or return spurious messages on DBUG_SUICIDE
5 --source include/not_valgrind.inc
6
7 --echo #
8 --echo # Bug #27419474 INNODB: ASSERTION FAILURE: ZLOB0READ.CC.*:FLST_LEN != 0
9 --echo #
10
11 set global innodb_compression_level = 0;
12
13 create table t1 (f1 int primary key, f2 longblob, key(f2(50)))
14 engine=innodb row_format=compressed;
15
16 show create table t1;
17
18 start transaction;
19 insert into t1 values (1, repeat('x', 50000));
20 SET DEBUG = '+d,crash_middle_of_lob_rollback_6';
21 # Historical note: since inception, above string seems too short to trigger the code path which could cause an error even for innodb_page_size=4k.
22 rollback;
23
24 select * from t1;
25 drop table t1;
26 set global innodb_compression_level = default;