mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-24536 innodb_idle_flush_pct has no effect
The parameter innodb_idle_flush_pct that was introduced in MariaDB Server 10.1.2 by MDEV-6932 has no effect ever since the InnoDB changes from MySQL 5.7.9 were applied in commit2e814d4702
. Let us declare the parameter as MARIADB_REMOVED_OPTION. For earlier versions, commitea9cd97f85
declared the parameter deprecated.
This commit is contained in:
@@ -1,77 +0,0 @@
|
||||
SET @start_global_value = @@global.innodb_idle_flush_pct;
|
||||
SELECT @start_global_value;
|
||||
@start_global_value
|
||||
100
|
||||
Valid values are between 0 and 100
|
||||
select @@global.innodb_idle_flush_pct between 0 and 100;
|
||||
@@global.innodb_idle_flush_pct between 0 and 100
|
||||
1
|
||||
select @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
100
|
||||
select @@session.innodb_idle_flush_pct;
|
||||
ERROR HY000: Variable 'innodb_idle_flush_pct' is a GLOBAL variable
|
||||
show global variables like 'innodb_idle_flush_pct';
|
||||
Variable_name Value
|
||||
innodb_idle_flush_pct 100
|
||||
show session variables like 'innodb_idle_flush_pct';
|
||||
Variable_name Value
|
||||
innodb_idle_flush_pct 100
|
||||
select * from information_schema.global_variables where variable_name='innodb_idle_flush_pct';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_IDLE_FLUSH_PCT 100
|
||||
select * from information_schema.session_variables where variable_name='innodb_idle_flush_pct';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_IDLE_FLUSH_PCT 100
|
||||
set global innodb_idle_flush_pct=10;
|
||||
select @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
10
|
||||
select * from information_schema.global_variables where variable_name='innodb_idle_flush_pct';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_IDLE_FLUSH_PCT 10
|
||||
select * from information_schema.session_variables where variable_name='innodb_idle_flush_pct';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_IDLE_FLUSH_PCT 10
|
||||
set session innodb_idle_flush_pct=1;
|
||||
ERROR HY000: Variable 'innodb_idle_flush_pct' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
set global innodb_idle_flush_pct=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_idle_flush_pct'
|
||||
set global innodb_idle_flush_pct=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_idle_flush_pct'
|
||||
set global innodb_idle_flush_pct="bar";
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_idle_flush_pct'
|
||||
set global innodb_idle_flush_pct=-7;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect innodb_idle_flush_pct value: '-7'
|
||||
select @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
0
|
||||
select * from information_schema.global_variables where variable_name='innodb_idle_flush_pct';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_IDLE_FLUSH_PCT 0
|
||||
set global innodb_idle_flush_pct=106;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect innodb_idle_flush_pct value: '106'
|
||||
select @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
100
|
||||
select * from information_schema.global_variables where variable_name='innodb_idle_flush_pct';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_IDLE_FLUSH_PCT 100
|
||||
set global innodb_idle_flush_pct=0;
|
||||
select @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
0
|
||||
set global innodb_idle_flush_pct=100;
|
||||
select @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
100
|
||||
set global innodb_idle_flush_pct=DEFAULT;
|
||||
select @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
100
|
||||
SET @@global.innodb_idle_flush_pct = @start_global_value;
|
||||
SELECT @@global.innodb_idle_flush_pct;
|
||||
@@global.innodb_idle_flush_pct
|
||||
100
|
@@ -188,15 +188,6 @@
|
||||
VARIABLE_COMMENT Total memory allocated for InnoDB Fulltext Search cache
|
||||
NUMERIC_MIN_VALUE 32000000
|
||||
NUMERIC_MAX_VALUE 1600000000
|
||||
@@ -1057,7 +1057,7 @@
|
||||
SESSION_VALUE NULL
|
||||
DEFAULT_VALUE 100
|
||||
VARIABLE_SCOPE GLOBAL
|
||||
-VARIABLE_TYPE BIGINT UNSIGNED
|
||||
+VARIABLE_TYPE INT UNSIGNED
|
||||
VARIABLE_COMMENT Up to what percentage of dirty pages should be flushed when innodb finds it has spare resources to do so.
|
||||
NUMERIC_MIN_VALUE 0
|
||||
NUMERIC_MAX_VALUE 100
|
||||
@@ -1093,22 +1093,22 @@
|
||||
SESSION_VALUE NULL
|
||||
DEFAULT_VALUE 200
|
||||
|
@@ -1053,18 +1053,6 @@ NUMERIC_BLOCK_SIZE NULL
|
||||
ENUM_VALUE_LIST NULL
|
||||
READ_ONLY NO
|
||||
COMMAND_LINE_ARGUMENT OPTIONAL
|
||||
VARIABLE_NAME INNODB_IDLE_FLUSH_PCT
|
||||
SESSION_VALUE NULL
|
||||
DEFAULT_VALUE 100
|
||||
VARIABLE_SCOPE GLOBAL
|
||||
VARIABLE_TYPE BIGINT UNSIGNED
|
||||
VARIABLE_COMMENT Up to what percentage of dirty pages should be flushed when innodb finds it has spare resources to do so.
|
||||
NUMERIC_MIN_VALUE 0
|
||||
NUMERIC_MAX_VALUE 100
|
||||
NUMERIC_BLOCK_SIZE 0
|
||||
ENUM_VALUE_LIST NULL
|
||||
READ_ONLY NO
|
||||
COMMAND_LINE_ARGUMENT REQUIRED
|
||||
VARIABLE_NAME INNODB_IMMEDIATE_SCRUB_DATA_UNCOMPRESSED
|
||||
SESSION_VALUE NULL
|
||||
DEFAULT_VALUE OFF
|
||||
|
Reference in New Issue
Block a user