Debian Codegraph @

mysql-test/suite/encryption/t/import_4k.test

raw
1 --source include/have_innodb.inc
2 --source include/have_sequence.inc
3 --source include/have_example_key_management_plugin.inc
4 --source include/have_debug.inc
5
6 set @save_limit = @@GLOBAL.innodb_limit_optimistic_insert_debug;
7 set global innodb_limit_optimistic_insert_debug=3;
8 create table t1 (a INT PRIMARY KEY) engine=InnoDB ENCRYPTED=YES;
9 insert into t1 select * from seq_1_to_6000;
10 flush table t1 for export;
11 --let $datadir= `select @@datadir`
12 --copy_file $datadir/test/t1.ibd $datadir/t1.ibd
13 --copy_file $datadir/test/t1.cfg $datadir/t1.cfg
14 unlock tables;
15 alter table t1 discard tablespace;
16 --move_file $datadir/t1.ibd $datadir/test/t1.ibd
17 --move_file $datadir/t1.cfg $datadir/test/t1.cfg
18 alter table t1 import tablespace;
19 set global innodb_limit_optimistic_insert_debug=@save_limit;
20 drop table t1;