Skip to content

Commit

Permalink
MDEV-11687 innodb_use_fallocate has no effect
Browse files Browse the repository at this point in the history
Remove the variable in MariaDB 10.3.0.
  • Loading branch information
dr-m committed Dec 30, 2016
1 parent f5148fa commit 8a5de51
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
14 changes: 0 additions & 14 deletions mysql-test/suite/sys_vars/r/sysvars_innodb.result
Expand Up @@ -2595,20 +2595,6 @@ NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY YES
COMMAND_LINE_ARGUMENT NONE
VARIABLE_NAME INNODB_USE_FALLOCATE
SESSION_VALUE NULL
GLOBAL_VALUE OFF
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE OFF
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT Use posix_fallocate() to allocate files. DEPRECATED, has no effect.
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY YES
COMMAND_LINE_ARGUMENT NONE
VARIABLE_NAME INNODB_USE_MTFLUSH
SESSION_VALUE NULL
GLOBAL_VALUE OFF
Expand Down
13 changes: 0 additions & 13 deletions storage/innobase/handler/ha_innodb.cc
Expand Up @@ -250,7 +250,6 @@ values */
static ulong innobase_fast_shutdown = 1;
static my_bool innobase_file_format_check = TRUE;
static my_bool innobase_use_atomic_writes = FALSE;
static my_bool innobase_use_fallocate;
static my_bool innobase_use_doublewrite = TRUE;
static my_bool innobase_use_checksums = TRUE;
static my_bool innobase_locks_unsafe_for_binlog = FALSE;
Expand Down Expand Up @@ -4639,12 +4638,6 @@ innobase_init(

innobase_commit_concurrency_init_default();

if (innobase_use_fallocate) {
ib::warn() << "innodb_use_fallocate is DEPRECATED"
" and has no effect in MariaDB 10.2."
" It will be removed in MariaDB 10.3.";
}

srv_use_atomic_writes = (ibool) innobase_use_atomic_writes;
if (innobase_use_atomic_writes) {
fprintf(stderr, "InnoDB: using atomic writes.\n");
Expand Down Expand Up @@ -21955,11 +21948,6 @@ static MYSQL_SYSVAR_BOOL(use_atomic_writes, innobase_use_atomic_writes,
"on Linux only with FusionIO device, and directFS filesystem.",
NULL, NULL, FALSE);

static MYSQL_SYSVAR_BOOL(use_fallocate, innobase_use_fallocate,
PLUGIN_VAR_NOCMDARG | PLUGIN_VAR_READONLY,
"Use posix_fallocate() to allocate files. DEPRECATED, has no effect.",
NULL, NULL, FALSE);

static MYSQL_SYSVAR_ULONG(io_capacity, srv_io_capacity,
PLUGIN_VAR_RQCMDARG,
"Number of IOPs the server can do. Tunes the background IO rate",
Expand Down Expand Up @@ -23191,7 +23179,6 @@ static struct st_mysql_sys_var* innobase_system_variables[]= {
MYSQL_SYSVAR(data_home_dir),
MYSQL_SYSVAR(doublewrite),
MYSQL_SYSVAR(use_atomic_writes),
MYSQL_SYSVAR(use_fallocate),
MYSQL_SYSVAR(api_enable_binlog),
MYSQL_SYSVAR(api_enable_mdl),
MYSQL_SYSVAR(api_disable_rowlock),
Expand Down

0 comments on commit 8a5de51

Please sign in to comment.