mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
Made the test innodb_max_dirty_pages_pct_func clean up after itself. mysql-test/r/innodb_max_dirty_pages_pct_func.result: Updated result file. mysql-test/t/disabled.def: Fixed BUG#37906 mysql-test/t/innodb_max_dirty_pages_pct_func.test: Made the test clean up after itself.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
'#--------------------FN_DYNVARS_044_02-------------------------#'
|
|
SET @old_innodb_max_dirty_pages_pct= @@global.innodb_max_dirty_pages_pct;
|
|
SET @@global.innodb_max_dirty_pages_pct = 80;
|
|
'connect (con1,localhost,root,,,,)'
|
|
'connection con1'
|
|
SELECT @@global.innodb_max_dirty_pages_pct;
|
|
@@global.innodb_max_dirty_pages_pct
|
|
80
|
|
SET @@global.innodb_max_dirty_pages_pct = 70;
|
|
'connect (con2,localhost,root,,,,)'
|
|
'connection con2'
|
|
SELECT @@global.innodb_max_dirty_pages_pct;
|
|
@@global.innodb_max_dirty_pages_pct
|
|
70
|
|
'#--------------------FN_DYNVARS_044_02-------------------------#'
|
|
'connection default'
|
|
'---Check when innodb_max_dirty_pages_pct is 10---'
|
|
SET @@global.innodb_max_dirty_pages_pct = 10;
|
|
FLUSH STATUS;
|
|
CALL add_until(10);
|
|
FLUSH TABLES;
|
|
CALL add_records(500);
|
|
'--sleep 5'
|
|
'We expect dirty pages pct to be BELOW_MAX'
|
|
CALL check_pct(10);
|
|
PCT_VALUE
|
|
BELOW_MAX
|
|
DROP PROCEDURE add_records;
|
|
DROP PROCEDURE add_until;
|
|
DROP PROCEDURE check_pct;
|
|
DROP FUNCTION dirty_pct;
|
|
DROP TABLE t1;
|
|
SET @@global.innodb_max_dirty_pages_pct = @old_innodb_max_dirty_pages_pct;
|