mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
(Inadequate background LRU flushing for write workloads with InnoDB compression). If InnoDB compression is used and the workload has writes, the following situation is possible. The LRU flusher issues an LRU flush request for an instance. buf_do_LRU_batch decides to perform unzip_LRU eviction and this eviction might fully satisfy the request. Then buf_flush_LRU_tail checks the number of flushed pages in the last iteration, finds it to be zero, and wrongly decides not to flush that instance anymore. Fixed by maintaining unzip_LRU eviction counter in struct flush_counter_t variables, and checking it in buf_flush_LRU_tail when deciding whether to stop flushing the current instance. Added test cases for new configuration files to get mysql-test-run suite sys_vars to pass. Fix some small errors.
23 lines
640 B
Plaintext
23 lines
640 B
Plaintext
--source include/have_innodb.inc
|
|
# bool readonly
|
|
|
|
#
|
|
# show values;
|
|
#
|
|
select @@global.innodb_use_mtflush;
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
select @@session.innodb_use_mtflush;
|
|
show global variables like 'innodb_use_mtflush';
|
|
show session variables like 'innodb_use_mtflush';
|
|
select * from information_schema.global_variables where variable_name='innodb_use_mtflush';
|
|
select * from information_schema.session_variables where variable_name='innodb_use_mtflush';
|
|
|
|
#
|
|
# show that it's read-only
|
|
#
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
set global innodb_use_mtflush=1;
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
set session innodb_use_mtflush=1;
|
|
|