mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Write proper tests for MDEV-12634: Uninitialised ROW_MERGE_RESERVE_SIZE bytes
Introduce innodb_encrypt_log.combinations and prove that the encryption and decryption take place during both online ADD INDEX (WL#5266) and online table-rebuilding ALTER (WL#6625).
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
SET GLOBAL innodb_file_format = `Barracuda`;
|
||||
create table t1(id int not null primary key auto_increment, credit_card varchar(200), private varchar(50)) engine=innodb;
|
||||
SET SESSION debug_dbug="+d,ib_merge_wait_after_read";
|
||||
alter table t1 add index secret (credit_card), ALGORITHM=INPLACE, LOCK=NONE;
|
||||
SET GLOBAL innodb_encryption_rotate_key_age = 1;
|
||||
create table t2(id int) engine=innodb;
|
||||
SET SESSION debug_dbug="+d,ib_merge_wait_after_read";
|
||||
alter table t1 add index secret2 (private), ALGORITHM=INPLACE, LOCK=NONE;
|
||||
insert into t1(credit_card) select credit_card from t1;
|
||||
insert into t1(credit_card) select credit_card from t1;
|
||||
insert into t1(credit_card) select credit_card from t1;
|
||||
drop table t2;
|
||||
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_num_pages_encrypted';
|
||||
variable_value > 0
|
||||
1
|
||||
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_encryption_n_merge_blocks_encrypted';
|
||||
variable_value > 0
|
||||
1
|
||||
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_encryption_n_merge_blocks_decrypted';
|
||||
variable_value > 0
|
||||
1
|
||||
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted';
|
||||
variable_value > 0
|
||||
1
|
||||
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_decrypted';
|
||||
variable_value > 0
|
||||
1
|
||||
drop table t1;
|
||||
SET GLOBAL innodb_file_format=Antelope;
|
||||
SET GLOBAL innodb_encryption_rotate_key_age=15;
|
Reference in New Issue
Block a user