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