mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-32841 Add tests for new counters.
Only add innodb_async_reads/writes_total_count here. For all other counters, writing reproducible tests is rather tricky.
This commit is contained in:
@ -23,12 +23,21 @@ WHERE table_name = '`test`.`ib_bp_test`';
|
||||
PAGE_NUMBER
|
||||
select count(*) from ib_bp_test LIMIT 0;
|
||||
count(*)
|
||||
select variable_value into @innodb_async_reads_total_count_before
|
||||
from information_schema.global_status
|
||||
where variable_name='innodb_async_reads_total_count';
|
||||
SET GLOBAL innodb_buffer_pool_load_now = ON;
|
||||
SELECT variable_value
|
||||
FROM information_schema.global_status
|
||||
WHERE LOWER(variable_name) = 'innodb_buffer_pool_load_status';
|
||||
variable_value
|
||||
Buffer pool(s) load completed at TIMESTAMP_NOW
|
||||
select (cast(variable_value as unsigned) >
|
||||
cast(@innodb_async_reads_total_count_before as unsigned))
|
||||
as async_reads_grow
|
||||
from information_schema.global_status where variable_name='innodb_async_reads_total_count';
|
||||
async_reads_grow
|
||||
1
|
||||
SELECT COUNT(*) FROM information_schema.innodb_buffer_page_lru
|
||||
WHERE table_name = '`test`.`ib_bp_test`';
|
||||
COUNT(*)
|
||||
|
Reference in New Issue
Block a user