1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-29692 Assertion `(writeptr + (i * size)) != local_frame' failed upon IMPORT TABLESPACE

fil_iterate(): Allocation bitmap pages are never encrypted.

Reviewed by: Thirunarayanan Balathandayuthapani
This commit is contained in:
Marko Mäkelä
2023-03-21 14:33:54 +02:00
parent f8c3d4c2d5
commit c73a65f55b
4 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,10 @@
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;
unlock tables;
alter table t1 discard tablespace;
alter table t1 import tablespace;
set global innodb_limit_optimistic_insert_debug=@save_limit;
drop table t1;

View File

@ -0,0 +1 @@
--innodb-page-size=4k

View File

@ -0,0 +1,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;