diff --git a/mysql-test/suite/sys_vars/r/innodb_use_fallocate_basic.result b/mysql-test/suite/sys_vars/r/innodb_use_fallocate_basic.result index 7ea55fba0a4..57b4b9eb94c 100644 --- a/mysql-test/suite/sys_vars/r/innodb_use_fallocate_basic.result +++ b/mysql-test/suite/sys_vars/r/innodb_use_fallocate_basic.result @@ -1,20 +1,20 @@ select @@global.innodb_use_fallocate; @@global.innodb_use_fallocate -1 +0 select @@session.innodb_use_fallocate; ERROR HY000: Variable 'innodb_use_fallocate' is a GLOBAL variable show global variables like 'innodb_use_fallocate'; Variable_name Value -innodb_use_fallocate ON +innodb_use_fallocate OFF show session variables like 'innodb_use_fallocate'; Variable_name Value -innodb_use_fallocate ON +innodb_use_fallocate OFF select * from information_schema.global_variables where variable_name='innodb_use_fallocate'; VARIABLE_NAME VARIABLE_VALUE -INNODB_USE_FALLOCATE ON +INNODB_USE_FALLOCATE OFF select * from information_schema.session_variables where variable_name='innodb_use_fallocate'; VARIABLE_NAME VARIABLE_VALUE -INNODB_USE_FALLOCATE ON +INNODB_USE_FALLOCATE OFF set global innodb_use_fallocate=1; ERROR HY000: Variable 'innodb_use_fallocate' is a read only variable set session innodb_use_fallocate=1; diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index abce3c93f68..19a6512a14f 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -11420,7 +11420,7 @@ static MYSQL_SYSVAR_BOOL(use_atomic_writes, innobase_use_atomic_writes, static MYSQL_SYSVAR_BOOL(use_fallocate, innobase_use_fallocate, PLUGIN_VAR_NOCMDARG | PLUGIN_VAR_READONLY, "Preallocate files fast, using operating system functionality. On POSIX systems, posix_fallocate system call is used.", - NULL, NULL, TRUE); + NULL, NULL, FALSE); static MYSQL_SYSVAR_ULONG(io_capacity, srv_io_capacity, PLUGIN_VAR_RQCMDARG, diff --git a/storage/xtradb/handler/ha_innodb.cc b/storage/xtradb/handler/ha_innodb.cc index c194dc38889..18912b499ae 100644 --- a/storage/xtradb/handler/ha_innodb.cc +++ b/storage/xtradb/handler/ha_innodb.cc @@ -12661,7 +12661,7 @@ static MYSQL_SYSVAR_BOOL(use_atomic_writes, innobase_use_atomic_writes, static MYSQL_SYSVAR_BOOL(use_fallocate, innobase_use_fallocate, PLUGIN_VAR_NOCMDARG | PLUGIN_VAR_READONLY, "Preallocate files fast, using operating system functionality. On POSIX systems, posix_fallocate system call is used.", - NULL, NULL, TRUE); + NULL, NULL, FALSE); static MYSQL_SYSVAR_ULONG(io_capacity, srv_io_capacity, PLUGIN_VAR_RQCMDARG,