mirror of
https://github.com/MariaDB/server.git
synced 2025-05-25 13:42:52 +03:00
Bind more InnoDB parameters directly to MYSQL_SYSVAR and remove "shadow variables". innodb_change_buffering: Declare as ENUM, not STRING. innodb_flush_method: Declare as ENUM, not STRING. innodb_log_buffer_size: Bind directly to srv_log_buffer_size, without rounding it to a multiple of innodb_page_size. LOG_BUFFER_SIZE: Remove. SysTablespace::normalize_size(): Renamed from normalize(). innodb_init_params(): A new function to initialize and validate InnoDB startup parameters. innodb_init(): Renamed from innobase_init(). Invoke innodb_init_params() before actually trying to start up InnoDB. srv_start(bool): Renamed from innobase_start_or_create_for_mysql(). Added the input parameter create_new_db. SRV_ALL_O_DIRECT_FSYNC: Define only for _WIN32. xb_normalize_init_values(): Merge to innodb_init_param().
66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
|
|
|
|
# 2010-01-25 - Added
|
|
#
|
|
|
|
--source include/have_innodb.inc
|
|
|
|
SET @start_global_value = @@global.innodb_change_buffering;
|
|
SELECT @start_global_value;
|
|
|
|
#
|
|
# exists as global only
|
|
#
|
|
--echo Valid values are 'all', 'deletes', 'changes', 'inserts', 'none', 'purges'
|
|
select @@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges');
|
|
select @@global.innodb_change_buffering;
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
select @@session.innodb_change_buffering;
|
|
show global variables like 'innodb_change_buffering';
|
|
show session variables like 'innodb_change_buffering';
|
|
--disable_warnings
|
|
select * from information_schema.global_variables where variable_name='innodb_change_buffering';
|
|
select * from information_schema.session_variables where variable_name='innodb_change_buffering';
|
|
--enable_warnings
|
|
|
|
#
|
|
# show that it's writable
|
|
#
|
|
set global innodb_change_buffering='none';
|
|
select @@global.innodb_change_buffering;
|
|
--disable_warnings
|
|
select * from information_schema.global_variables where variable_name='innodb_change_buffering';
|
|
select * from information_schema.session_variables where variable_name='innodb_change_buffering';
|
|
--enable_warnings
|
|
set @@global.innodb_change_buffering='inserts';
|
|
select @@global.innodb_change_buffering;
|
|
--disable_warnings
|
|
select * from information_schema.global_variables where variable_name='innodb_change_buffering';
|
|
select * from information_schema.session_variables where variable_name='innodb_change_buffering';
|
|
--enable_warnings
|
|
--error ER_GLOBAL_VARIABLE
|
|
set session innodb_change_buffering='some';
|
|
--error ER_GLOBAL_VARIABLE
|
|
set @@session.innodb_change_buffering='some';
|
|
|
|
#
|
|
# incorrect types
|
|
#
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
set global innodb_change_buffering=1.1;
|
|
set global innodb_change_buffering=1;
|
|
SELECT @@global.innodb_change_buffering;
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global innodb_change_buffering=-2;
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
set global innodb_change_buffering=1e1;
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global innodb_change_buffering='some';
|
|
|
|
#
|
|
# Cleanup
|
|
#
|
|
|
|
SET @@global.innodb_change_buffering = @start_global_value;
|
|
SELECT @@global.innodb_change_buffering;
|