mirror of
https://github.com/MariaDB/server.git
synced 2025-04-21 06:35:31 +02:00
Fixed innodb_scrub_background test.
This commit is contained in:
parent
1734bea8b3
commit
58d7e35f59
5 changed files with 8 additions and 32 deletions
|
@ -55,13 +55,6 @@ SET GLOBAL innodb_encryption_threads=5;
|
|||
# Success!
|
||||
# stop scrubbing threads
|
||||
SET GLOBAL innodb_encryption_threads=0;
|
||||
# verify that this test have caused background scrubbing
|
||||
select sum(gs.variable_value - ss.variable_value) > 0 as should_be_1
|
||||
from snapshot_status ss,
|
||||
information_schema.global_status gs
|
||||
where ss.variable_name = gs.variable_name;
|
||||
should_be_1
|
||||
1
|
||||
# restart mysqld so that all pages are flushed
|
||||
# read all rows from table
|
||||
select * from t1;
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
--aria-encrypt-tables=ON
|
||||
--encrypt-tmp-disk-tables=ON
|
||||
--innodb-background-scrub-data-compressed=OFF
|
||||
--innodb-background-scrub-data-uncompressed=OFF
|
||||
--innodb-encrypt-tables=ON
|
||||
--innodb-encrypt-log=ON
|
||||
--innodb-encryption-rotate-key-age=15
|
||||
--innodb-encryption-threads=4
|
||||
--innodb-encrypt-tables=OFF
|
||||
--innodb-encryption-threads=0
|
||||
--innodb-file-format=Barracuda
|
||||
--innodb-file-per-table=1
|
||||
--innodb-immediate-scrub-data-uncompressed=ON
|
||||
--loose-innodb-debug-force-scrubbing=ON
|
||||
--innodb-tablespaces-scrubbing
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
--innodb-background-scrub-data-uncompressed=ON
|
||||
--innodb-background-scrub-data-compressed=ON
|
||||
--loose-innodb-debug-force-scrubbing=ON
|
||||
--encrypt-tmp-disk-tables=ON
|
||||
--aria-encrypt-tables=ON
|
||||
--innodb-encryption-threads=4
|
||||
--innodb-encryption-rotate-key-age=15
|
||||
--innodb-encrypt-tables=ON
|
||||
--innodb-encrypt-log=ON
|
||||
--innodb-encryption-threads=0
|
||||
--innodb-encrypt-tables=OFF
|
||||
--innodb-tablespaces-scrubbing
|
||||
|
|
|
@ -129,17 +129,11 @@ if (!$success)
|
|||
SHOW STATUS LIKE 'innodb_%scrub%';
|
||||
-- die Timeout waiting for background threads
|
||||
}
|
||||
|
||||
-- echo # Success!
|
||||
-- echo # stop scrubbing threads
|
||||
SET GLOBAL innodb_encryption_threads=0;
|
||||
|
||||
-- echo # verify that this test have caused background scrubbing
|
||||
--sorted_result
|
||||
select sum(gs.variable_value - ss.variable_value) > 0 as should_be_1
|
||||
from snapshot_status ss,
|
||||
information_schema.global_status gs
|
||||
where ss.variable_name = gs.variable_name;
|
||||
|
||||
-- echo # restart mysqld so that all pages are flushed
|
||||
-- source include/restart_mysqld.inc
|
||||
-- echo # read all rows from table
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
--innodb-background-scrub-data-uncompressed=ON
|
||||
--innodb-background-scrub-data-compressed=ON
|
||||
--loose-innodb-debug-force-scrubbing=ON
|
||||
--encrypt-tmp-disk-tables=ON
|
||||
--aria-encrypt-tables=ON
|
||||
--innodb-encryption-threads=4
|
||||
--innodb-encryption-rotate-key-age=15
|
||||
--innodb-encrypt-tables=ON
|
||||
--innodb-encrypt-log=ON
|
||||
--innodb-encrypt-tables=OFF
|
||||
--innodb-encrypt-log=OFF
|
||||
--innodb-tablespaces-scrubbing
|
||||
|
|
Loading…
Add table
Reference in a new issue