2
2
-- source include/have_example_key_management_plugin.inc
3
3
-- source include/not_embedded.inc
4
4
5
+ --disable_query_log
6
+ let $innodb_encrypt_tables_orig = `SELECT @@innodb_encrypt_tables`;
7
+ let $innodb_encryption_threads_orig = `SELECT @@innodb_encryption_threads`;
8
+ --enable_query_log
9
+
10
+ --disable_warnings
5
11
SET GLOBAL innodb_encryption_threads = 4;
6
- SET GLOBAL innodb_encrypt_tables = on;
12
+ --enable_warnings
7
13
8
14
# zlib
9
15
set global innodb_compression_algorithm = 1;
@@ -110,12 +116,12 @@ innodb_page_compressed3, innodb_page_compressed4,
110
116
innodb_page_compressed5, innodb_page_compressed6,
111
117
innodb_page_compressed7, innodb_page_compressed8,
112
118
innodb_page_compressed9 for export;
119
+
113
120
unlock tables;
114
121
115
122
--echo # Wait until dirty pages are compressed and encrypted 2
116
123
let $wait_condition= select variable_value > 0 from information_schema.global_status where variable_name = 'INNODB_NUM_PAGES_PAGE_COMPRESSED';
117
124
--source include/wait_condition.inc
118
- unlock tables;
119
125
let $wait_condition= select variable_value > 0 from information_schema.global_status where variable_name = 'INNODB_NUM_PAGES_DECRYPTED';
120
126
--source include/wait_condition.inc
121
127
@@ -134,3 +140,9 @@ drop table innodb_page_compressed6;
134
140
drop table innodb_page_compressed7;
135
141
drop table innodb_page_compressed8;
136
142
drop table innodb_page_compressed9;
143
+
144
+ # reset system
145
+ --disable_query_log
146
+ EVAL SET GLOBAL innodb_encrypt_tables = $innodb_encrypt_tables_orig;
147
+ EVAL SET GLOBAL innodb_encryption_threads = $innodb_encryption_threads_orig;
148
+ --enable_query_log
0 commit comments