← Back
Editing: innodb_buffer_pool_load_now_basic.test
# # Basic test for innodb_buffer_pool_load_now # -- source include/have_innodb.inc --source include/not_embedded.inc # Check the default value SET @orig = @@global.innodb_buffer_pool_load_now; SELECT @orig; # Do the dump SET GLOBAL innodb_buffer_pool_dump_now = ON; # Wait for the dump to complete let $wait_condition = SELECT SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) dump completed at ' FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status'; --disable_warnings -- source include/wait_condition.inc --enable_warnings # Confirm the file is really created -- let $file = `SELECT CONCAT(@@datadir, @@global.innodb_buffer_pool_filename)` -- file_exists $file SET GLOBAL innodb_fast_shutdown=0; --source include/restart_mysqld.inc # Load the dump SET GLOBAL innodb_buffer_pool_load_now = ON; # Wait for the load to complete let $wait_timeout = 900; let $wait_condition = SELECT SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) load completed at ' FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_buffer_pool_load_status'; --disable_warnings -- source include/wait_condition.inc --enable_warnings # Show the status, interesting if the above timed out --disable_warnings -- replace_regex /[0-9]{6}[[:space:]]+[0-9]{1,2}:[0-9]{2}:[0-9]{2}/TIMESTAMP_NOW/ SELECT variable_value FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_buffer_pool_load_status'; --enable_warnings
Save File
Cancel