Skip to content

Commit 287d105

Browse files
committed
Merge 10.1 into 10.2
2 parents 9c9db1c + d9e0c06 commit 287d105

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

mysql-test/suite/encryption/t/debug_key_management.test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ if (`select count(*) = 0 from information_schema.plugins
88
set global innodb_encrypt_tables=ON;
99
show variables like 'innodb_encrypt%';
1010

11-
let $wait_condition= select count(*) = 3 from information_schema.innodb_tablespaces_encryption where current_key_version=1;
11+
--let $tables_count= `select count(*) + 1 from information_schema.tables where engine = 'InnoDB'`
12+
let $wait_condition= select count(*) = $tables_count from information_schema.innodb_tablespaces_encryption where current_key_version=1;
1213
--source include/wait_condition.inc
1314

1415
select count(*) from information_schema.innodb_tablespaces_encryption where current_key_version <> 1;
1516
set global debug_key_management_version=10;
1617

17-
let $wait_condition= select count(*) = 3 from information_schema.innodb_tablespaces_encryption where current_key_version=10;
18+
let $wait_condition= select count(*) = $tables_count from information_schema.innodb_tablespaces_encryption where current_key_version=10;
1819
--source include/wait_condition.inc
1920

2021
select count(*) from information_schema.innodb_tablespaces_encryption where current_key_version <> 10;

mysql-test/suite/encryption/t/encrypt_and_grep.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ SET GLOBAL innodb_encrypt_tables = off;
6363

6464
--echo # Wait max 10 min for key encryption threads to decrypt all spaces
6565
--let $wait_timeout= 600
66-
--let $wait_condition=SELECT COUNT(*) = 5 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0 AND CURRENT_KEY_VERSION = 0;
66+
--let $tables_count= `select count(*) from information_schema.tables where engine = 'InnoDB'`
67+
--let $wait_condition=SELECT COUNT(*) = $tables_count FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0 AND CURRENT_KEY_VERSION = 0;
6768
--source include/wait_condition.inc
6869

6970
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;

mysql-test/suite/encryption/t/innodb_encryption.test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ SHOW VARIABLES LIKE 'innodb_encrypt%';
1414

1515
SET GLOBAL innodb_encrypt_tables = ON;
1616

17+
--let $tables_count= `select count(*) + 1 from information_schema.tables where engine = 'InnoDB'`
18+
1719
--echo # Wait max 10 min for key encryption threads to encrypt all spaces
1820
--let $wait_timeout= 600
19-
--let $wait_condition=SELECT COUNT(*) >= 3 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
21+
--let $wait_condition=SELECT COUNT(*) >= $tables_count FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
2022
--source include/wait_condition.inc
2123

2224
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
@@ -59,7 +61,7 @@ SET GLOBAL innodb_encryption_threads=@start_global_value;
5961

6062
--echo # Wait max 10 min for key encryption threads to encrypt all spaces
6163
--let $wait_timeout= 600
62-
--let $wait_condition=SELECT COUNT(*) >=3 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
64+
--let $wait_condition=SELECT COUNT(*) >= $tables_count FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
6365
--source include/wait_condition.inc
6466

6567
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;

0 commit comments

Comments
 (0)