2
# Basic test for innodb_buffer_pool_load_now
5
-- source include/have_innodb.inc
7
# Check the default value
8
SET @orig = @@global.innodb_buffer_pool_load_now;
12
SET GLOBAL innodb_buffer_pool_dump_now = ON;
14
# Wait for the dump to complete
16
SELECT SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) dump completed at '
17
FROM information_schema.global_status
18
WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status';
19
-- source include/wait_condition.inc
21
# Confirm the file is really created
22
-- let $file = `SELECT CONCAT(@@datadir, @@global.innodb_buffer_pool_filename)`
26
SET GLOBAL innodb_buffer_pool_load_now = ON;
28
# Wait for the load to complete
30
SELECT SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) load completed at '
31
FROM information_schema.global_status
32
WHERE LOWER(variable_name) = 'innodb_buffer_pool_load_status';
33
-- source include/wait_condition.inc
35
# Show the status, interesting if the above timed out
36
-- replace_regex /[0-9]{6}[[:space:]]+[0-9]{1,2}:[0-9]{2}:[0-9]{2}/TIMESTAMP_NOW/
38
FROM information_schema.global_status
39
WHERE LOWER(variable_name) = 'innodb_buffer_pool_load_status';