mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -88,6 +88,11 @@ WHERE table_name = '`test`.`ib_bp_test`';
|
||||
# Load the table so that entries in the I_S table do not appear as NULL
|
||||
select count(*) from ib_bp_test LIMIT 0;
|
||||
|
||||
# Check that async reads are executed during bufferpool load
|
||||
select variable_value into @innodb_async_reads_total_count_before
|
||||
from information_schema.global_status
|
||||
where variable_name='innodb_async_reads_total_count';
|
||||
|
||||
# Load
|
||||
SET GLOBAL innodb_buffer_pool_load_now = ON;
|
||||
|
||||
@@ -108,6 +113,12 @@ FROM information_schema.global_status
|
||||
WHERE LOWER(variable_name) = 'innodb_buffer_pool_load_status';
|
||||
--enable_warnings
|
||||
|
||||
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';
|
||||
|
||||
|
||||
SELECT COUNT(*) FROM information_schema.innodb_buffer_page_lru
|
||||
WHERE table_name = '`test`.`ib_bp_test`';
|
||||
|
||||
|
Reference in New Issue
Block a user