mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-20306 Assert when converting encrypted Aria table to S3
Changes: - maria_create() now uses a bit in the parameter flags to check if table should be encrypted instead of using maria_encrypted_tables. - Don't encrypt tables that are to be converted to S3 - Added encrypted flag to ARIA_TABLE_CAPABILITIES - maria_chk --description now prints if table is encrypted. Other operations is not allowed on encrypted tables.
This commit is contained in:
23
mysql-test/suite/s3/encryption.result
Normal file
23
mysql-test/suite/s3/encryption.result
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# MDEV-20306
|
||||
# Assertion `!(end_of_data > info->scan.dir_end)' failed in
|
||||
# _ma_scan_block_record upon converting table from S3 to Aria
|
||||
# with encryption enabled
|
||||
#
|
||||
drop table if exists t1;
|
||||
CREATE TABLE t1 (a INT) ENGINE=Aria;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
ALTER TABLE t1 ENGINE=S3;
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=S3 DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
ALTER TABLE t1 ENGINE=Aria;
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user