Commit c70b239e authored by Vinay Fisrekar's avatar Vinay Fisrekar

Merge from mysql-5.1 for

sys_vars.innodb_max_dirty_pages_pct_func fails sporadically
      
parents 720e1212 5302bb48
...@@ -64,12 +64,12 @@ SET last = pct; ...@@ -64,12 +64,12 @@ SET last = pct;
END IF; END IF;
END WHILE; END WHILE;
END// END//
CREATE PROCEDURE check_pct(IN num DECIMAL) CREATE PROCEDURE check_pct(IN success_on_wait BOOLEAN)
BEGIN BEGIN
IF (dirty_pct() < num) THEN IF (success_on_wait > 0) THEN
SELECT 'BELOW_MAX' AS PCT_VALUE; SELECT 'BELOW_MAX' AS PCT_VALUE;
ELSE ELSE
SELECT 'ABOVE_MAX' AS PCT_VALUE; SELECT 'ABOVE_MAX or TimeOut Of The Test' AS PCT_VALUE;
END IF; END IF;
END// END//
CREATE TABLE t1( CREATE TABLE t1(
...@@ -83,7 +83,7 @@ CALL add_until(10); ...@@ -83,7 +83,7 @@ CALL add_until(10);
FLUSH TABLES; FLUSH TABLES;
CALL add_records(500); CALL add_records(500);
'We expect dirty pages pct to be BELOW_MAX after some time depending on performance' 'We expect dirty pages pct to be BELOW_MAX after some time depending on performance'
CALL check_pct(10); CALL check_pct(1);
PCT_VALUE PCT_VALUE
BELOW_MAX BELOW_MAX
DROP PROCEDURE add_records; DROP PROCEDURE add_records;
......
...@@ -117,12 +117,12 @@ BEGIN ...@@ -117,12 +117,12 @@ BEGIN
END WHILE; END WHILE;
END// END//
CREATE PROCEDURE check_pct(IN num DECIMAL) CREATE PROCEDURE check_pct(IN success_on_wait BOOLEAN)
BEGIN BEGIN
IF (dirty_pct() < num) THEN IF (success_on_wait > 0) THEN
SELECT 'BELOW_MAX' AS PCT_VALUE; SELECT 'BELOW_MAX' AS PCT_VALUE;
ELSE ELSE
SELECT 'ABOVE_MAX' AS PCT_VALUE; SELECT 'ABOVE_MAX or TimeOut Of The Test' AS PCT_VALUE;
END IF; END IF;
END// END//
...@@ -155,7 +155,8 @@ let $wait_condition= SELECT (dirty_pct() <= @@global.innodb_max_dirty_pages_pct) ...@@ -155,7 +155,8 @@ let $wait_condition= SELECT (dirty_pct() <= @@global.innodb_max_dirty_pages_pct)
--source include/wait_condition.inc --source include/wait_condition.inc
--echo 'We expect dirty pages pct to be BELOW_MAX after some time depending on performance' --echo 'We expect dirty pages pct to be BELOW_MAX after some time depending on performance'
CALL check_pct(10); # Value For $sucess will be set from include/wait_condition.inc file. It can have values 1 or 0. It will be 1 if dirty_pct() <= @@global.innodb_max_dirty_pages_pct else it will be 0.
eval CALL check_pct($success);
DROP PROCEDURE add_records; DROP PROCEDURE add_records;
DROP PROCEDURE add_until; DROP PROCEDURE add_until;
DROP PROCEDURE check_pct; DROP PROCEDURE check_pct;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment