Skip to content

Commit 241d30d

Browse files
committed
After-merge fixes for MDEV-14180
1 parent c9a85fb commit 241d30d

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

mysql-test/suite/encryption/r/innodb-first-page-read.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ VARIABLE_VALUE <= 29
6666
1
6767
set global innodb_encrypt_tables=OFF;
6868
# wait until tables are decrypted
69+
SET GLOBAL innodb_max_dirty_pages_pct=0.0;
70+
SET GLOBAL innodb_max_dirty_pages_pct_lwm=0.0;
6971
# result should be actual number of tables except remote tables could be read twice
7072
# i.e. < 23 + 3*2 = 29
7173
SELECT VARIABLE_VALUE <= 29 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'innodb_pages0_read';

mysql-test/suite/encryption/r/innodb-key-rotation-disable.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
SET GLOBAL innodb_file_per_table = ON;
2+
set global innodb_compression_algorithm = 1;
13
create database enctests;
24
use enctests;
35
create table t1(a int not null primary key, b char(200)) engine=innodb;

mysql-test/suite/encryption/t/innodb-first-page-read.test

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ SELECT VARIABLE_VALUE <= 29 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABL
7777
set global innodb_encrypt_tables=OFF;
7878

7979
--echo # wait until tables are decrypted
80-
--let $wait_condition=SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0
80+
SET GLOBAL innodb_max_dirty_pages_pct=0.0;
81+
SET GLOBAL innodb_max_dirty_pages_pct_lwm=0.0;
82+
83+
let $wait_condition =
84+
SELECT variable_value = 0
85+
FROM information_schema.global_status
86+
WHERE variable_name = 'INNODB_BUFFER_POOL_PAGES_DIRTY';
8187
--source include/wait_condition.inc
8288

8389
--echo # result should be actual number of tables except remote tables could be read twice

storage/innobase/fil/fil0fil.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,10 +1421,12 @@ fil_space_create(
14211421
encryption threads. */
14221422
fil_system.default_encrypt_tables.push_back(*space);
14231423
space->is_in_default_encrypt = true;
1424-
mutex_exit(&fil_system.mutex);
1424+
}
1425+
1426+
mutex_exit(&fil_system.mutex);
1427+
1428+
if (rotate && srv_n_fil_crypt_threads_started) {
14251429
os_event_set(fil_crypt_threads_event);
1426-
} else {
1427-
mutex_exit(&fil_system.mutex);
14281430
}
14291431

14301432
return(space);

0 commit comments

Comments
 (0)