Commit 172b631c authored by Sergei Golubchik's avatar Sergei Golubchik

fix innodb_buffer_pool_filename_basic.test not to require server restart

parent 416d0aeb
...@@ -2,11 +2,6 @@ SET @orig = @@global.innodb_buffer_pool_filename; ...@@ -2,11 +2,6 @@ SET @orig = @@global.innodb_buffer_pool_filename;
SELECT @orig; SELECT @orig;
@orig @orig
ib_buffer_pool ib_buffer_pool
SELECT variable_value
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status';
variable_value
not started
SET GLOBAL innodb_buffer_pool_filename = 'innodb_foobar_dump'; SET GLOBAL innodb_buffer_pool_filename = 'innodb_foobar_dump';
SET GLOBAL innodb_buffer_pool_dump_now = ON; SET GLOBAL innodb_buffer_pool_dump_now = ON;
SET GLOBAL innodb_buffer_pool_filename = @orig; SET GLOBAL innodb_buffer_pool_filename = @orig;
...@@ -8,17 +8,7 @@ ...@@ -8,17 +8,7 @@
SET @orig = @@global.innodb_buffer_pool_filename; SET @orig = @@global.innodb_buffer_pool_filename;
SELECT @orig; SELECT @orig;
# Make sure that --force-restart in the .opt file has worked and that let $old_val=query_get_value(SHOW STATUS LIKE 'innodb_buffer_pool_dump_status', Value, 1);
# the value of this status variable is not something like
# 'Buffer pool(s) dump completed at ' left from previous runs because if
# it is then the following wait condition may be satisfied without the
# dump actually being complete and file_exists may fail.
let $status_var = innodb_buffer_pool_dump_status;
let $status_var_value = not started;
-- source include/wait_for_status_var.inc
SELECT variable_value
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status';
# Try with a non-default filename # Try with a non-default filename
...@@ -29,9 +19,10 @@ SET GLOBAL innodb_buffer_pool_dump_now = ON; ...@@ -29,9 +19,10 @@ SET GLOBAL innodb_buffer_pool_dump_now = ON;
# Wait for the dump to complete # Wait for the dump to complete
let $wait_condition = let $wait_condition =
SELECT SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) dump completed at ' SELECT variable_value LIKE 'Buffer pool(s) dump completed at %'
AND variable_value <> '$old_val'
FROM information_schema.global_status FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status'; WHERE variable_name = 'innodb_buffer_pool_dump_status';
-- source include/wait_condition.inc -- source include/wait_condition.inc
-- file_exists $file -- file_exists $file
......
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