Debian Codegraph @

mysql-test/suite/innodb/t/lob-being-modified-bit.test

raw
1 --source include/have_debug.inc
2
3 create table t1 (f1 longblob) engine=innodb;
4 show create table t1;
5
6 insert into t1 values (repeat('x', 1024*16*4));
7 select count(*) from t1;
8 select left(f1, 40) from t1;
9 select right(f1, 40) from t1;
10 select length(f1) from t1;
11
12 --echo # Connection con1:
13 connect (con1,localhost,root,,);
14 start transaction;
15 set debug_sync = 'blob_write_middle SIGNAL go_flush WAIT_FOR go_insert';
16 --send insert into t1 values (repeat('y', 1024*16*4));
17
18 --echo # Connection default:
19 connection default;
20 set debug_sync = 'now WAIT_FOR go_flush';
21 SET GLOBAL innodb_log_checkpoint_now = ON;
22 SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
23 SET GLOBAL innodb_dict_stats_disabled_debug = 1;
24 SET GLOBAL innodb_master_thread_disabled_debug = 1;
25 SET GLOBAL innodb_checkpoint_disabled = 1;
26 set debug_sync = 'now SIGNAL go_insert';
27
28 --echo # Connection con1:
29 connection con1;
30 --reap
31 commit;
32
33 --echo # Connection default:
34 connection default;
35
36 --source include/kill_and_restart_mysqld.inc
37
38 select count(*) from t1;
39 select left(f1, 40) from t1;
40 select right(f1, 40) from t1;
41 select length(f1) from t1;
42
43 drop table t1;
44