mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
36 lines
929 B
Plaintext
36 lines
929 B
Plaintext
--source include/have_innodb.inc
|
|
--source include/have_file_key_management_plugin.inc
|
|
--source include/not_embedded.inc
|
|
|
|
#
|
|
# MDEV-8164: Server crashes in pfs_mutex_enter_func after fil_crypt_is_closing or alike
|
|
#
|
|
SET default_storage_engine = InnoDB;
|
|
|
|
CREATE TABLE t1 (pk INT PRIMARY KEY, c VARCHAR(256));
|
|
CREATE TABLE t2 AS SELECT * FROM t1;
|
|
|
|
--disable_abort_on_error
|
|
--disable_warnings
|
|
--disable_query_log
|
|
|
|
let $i = 40;
|
|
while ($i)
|
|
{
|
|
SET GLOBAL innodb_encrypt_tables = ON;
|
|
SET GLOBAL innodb_encryption_threads = 1;
|
|
CREATE OR REPLACE TABLE t1 AS SELECT * FROM t2;
|
|
CREATE OR REPLACE TABLE t2 AS SELECT * FROM t1;
|
|
SET GLOBAL innodb_encryption_rotation_iops = 100;
|
|
SET GLOBAL innodb_encrypt_tables = OFF;
|
|
CREATE OR REPLACE TABLE t2 AS SELECT * FROM t1;
|
|
CREATE OR REPLACE TABLE t1 AS SELECT * FROM t2;
|
|
dec $i;
|
|
}
|
|
|
|
--enable_abort_on_error
|
|
--enable_warnings
|
|
--enable_query_log
|
|
|
|
drop table t1,t2;
|
|
SET GLOBAL innodb_encryption_threads = 0; |