Commit e685809a authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-23397 Remove deprecated InnoDB options in 10.6

parent 2f4bcc24
......@@ -753,7 +753,6 @@ enum options_xtrabackup
OPT_INNODB_CHECKSUM_ALGORITHM,
OPT_INNODB_UNDO_DIRECTORY,
OPT_INNODB_UNDO_TABLESPACES,
OPT_INNODB_LOG_CHECKSUMS,
OPT_XTRA_INCREMENTAL_FORCE_SCAN,
OPT_DEFAULTS_GROUP,
OPT_CLOSE_FILES,
......@@ -1195,10 +1194,6 @@ uint xb_client_options_count = array_elements(xb_client_options);
static const char *dbug_option;
#endif
namespace deprecated {
extern ulong srv_n_log_files;
}
struct my_option xb_server_options[] =
{
{"datadir", 'h', "Path to the database root.", (G_PTR*) &mysql_data_home,
......@@ -1305,10 +1300,6 @@ struct my_option xb_server_options[] =
GET_ULL, REQUIRED_ARG, 48 << 20, 1 << 20,
std::numeric_limits<ulonglong>::max(), 0,
UNIV_PAGE_SIZE_MAX, 0},
{"innodb_log_files_in_group", OPT_INNODB_LOG_FILES_IN_GROUP,
"Ignored for mysqld option compatibility",
&deprecated::srv_n_log_files, &deprecated::srv_n_log_files,
0, GET_LONG, REQUIRED_ARG, 1, 1, 100, 0, 1, 0},
{"innodb_log_group_home_dir", OPT_INNODB_LOG_GROUP_HOME_DIR,
"Path to InnoDB log files.", &srv_log_group_home_dir,
&srv_log_group_home_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
......
......@@ -1423,33 +1423,6 @@ show variables like "innodb_sync_spin_loops";
set global innodb_sync_spin_loops=20;
show variables like "innodb_sync_spin_loops";
# Test for innodb_thread_concurrency variable
show variables like "innodb_thread_concurrency";
set global innodb_thread_concurrency=1001;
show variables like "innodb_thread_concurrency";
set global innodb_thread_concurrency=0;
show variables like "innodb_thread_concurrency";
set global innodb_thread_concurrency=16;
show variables like "innodb_thread_concurrency";
# Test for innodb_concurrency_tickets variable
show variables like "innodb_concurrency_tickets";
set global innodb_concurrency_tickets=1000;
show variables like "innodb_concurrency_tickets";
set global innodb_concurrency_tickets=0;
show variables like "innodb_concurrency_tickets";
set global innodb_concurrency_tickets=500;
show variables like "innodb_concurrency_tickets";
# Test for innodb_thread_sleep_delay variable
show variables like "innodb_thread_sleep_delay";
set global innodb_thread_sleep_delay=100000;
show variables like "innodb_thread_sleep_delay";
set global innodb_thread_sleep_delay=0;
show variables like "innodb_thread_sleep_delay";
set global innodb_thread_sleep_delay=10000;
show variables like "innodb_thread_sleep_delay";
}
......
......@@ -815,8 +815,6 @@ set optimizer_switch=@tmp_optimizer_switch;
# on optimized builds
#
SET @save_sort_buffer_size=@@sort_buffer_size;
SET @save_innodb_file_format= @@innodb_file_format;
SET @save_innodb_large_prefix= @@innodb_large_prefix;
SET sort_buffer_size=2048;
CREATE TABLE t1 (
a VARCHAR(1024) CHARACTER SET UTF8 PRIMARY KEY,
......
......@@ -206,8 +206,6 @@ set optimizer_switch=@tmp_optimizer_switch;
--echo #
SET @save_sort_buffer_size=@@sort_buffer_size;
SET @save_innodb_file_format= @@innodb_file_format;
SET @save_innodb_large_prefix= @@innodb_large_prefix;
SET sort_buffer_size=2048;
CREATE TABLE t1 (
......
......@@ -81,9 +81,6 @@ DROP TABLE t1;
# Bug#54747: Deadlock between REORGANIZE PARTITION and
# SELECT is not detected
#
SET @old_innodb_thread_concurrency := @@innodb_thread_concurrency;
SET @old_innodb_thread_sleep_delay := @@innodb_thread_sleep_delay;
SET GLOBAL innodb_thread_concurrency = 1;
CREATE TABLE t1
(user_num BIGINT,
hours SMALLINT,
......@@ -116,8 +113,6 @@ connection con1;
# Cleaning up.
disconnect con1;
connection default;
SET GLOBAL innodb_thread_concurrency = @old_innodb_thread_concurrency;
SET GLOBAL innodb_thread_sleep_delay = @old_innodb_thread_sleep_delay;
DROP TABLE t1;
#
# Bug#50418: DROP PARTITION does not interact with transactions
......
......@@ -95,10 +95,6 @@ DROP TABLE t1;
--echo # SELECT is not detected
--echo #
SET @old_innodb_thread_concurrency := @@innodb_thread_concurrency;
SET @old_innodb_thread_sleep_delay := @@innodb_thread_sleep_delay;
SET GLOBAL innodb_thread_concurrency = 1;
CREATE TABLE t1
(user_num BIGINT,
hours SMALLINT,
......@@ -143,8 +139,6 @@ COMMIT;
--connection default
SET GLOBAL innodb_thread_concurrency = @old_innodb_thread_concurrency;
SET GLOBAL innodb_thread_sleep_delay = @old_innodb_thread_sleep_delay;
DROP TABLE t1;
......
......@@ -5,12 +5,6 @@
# MDEV-9422 Encrypted redo log checksum errors
# on restart after killing busy server instance
#
SET GLOBAL innodb_log_checksums=0;
Warnings:
Warning 138 The parameter innodb_log_checksums is deprecated and has no effect.
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
CREATE TABLE t0 (
pk bigint auto_increment,
col_int int,
......
......@@ -13,9 +13,6 @@
--let $MYSQLD_DATADIR=`select @@datadir`
SET GLOBAL innodb_log_checksums=0;
SELECT @@global.innodb_log_checksums;
CREATE TABLE t0 (
pk bigint auto_increment,
col_int int,
......
call mtr.add_suppression("InnoDB: Warning: cannot find a free slot for an undo log. Do you have too*");
call mtr.add_suppression("\\[Warning\\] InnoDB: Cannot find a free slot for an undo log. Do you have too");
show variables like "max_connections";
Variable_name Value
max_connections 64
show variables like "innodb_thread_concurrency";
Variable_name Value
innodb_thread_concurrency 0
show variables like "innodb_file_per_table";
Variable_name Value
innodb_file_per_table ON
drop database if exists mysqltest;
create database mysqltest;
CREATE TABLE mysqltest.transtable (id int unsigned NOT NULL PRIMARY KEY, val int DEFAULT 0) ENGINE=InnoDB;
......
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
# restart: --innodb-thread-concurrency=1 --innodb-log-file-size=2m
# restart: --innodb-log-file-size=2m
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check status OK
# restart: --innodb-thread-concurrency=100 --innodb-log-file-size=20M
# restart: --innodb-log-file-size=20M
BEGIN;
INSERT INTO t1 VALUES (42);
# restart: --innodb-log-file-size=12M
......
--max_connections=64 --innodb_thread_concurrency=0
......@@ -10,7 +10,6 @@
# undo slots of the previous test might exist still
--source include/not_windows.inc
call mtr.add_suppression("InnoDB: Warning: cannot find a free slot for an undo log. Do you have too*");
call mtr.add_suppression("\\[Warning\\] InnoDB: Cannot find a free slot for an undo log. Do you have too");
--disable_query_log
......@@ -18,10 +17,6 @@ set @old_innodb_trx_rseg_n_slots_debug = @@innodb_trx_rseg_n_slots_debug;
set global innodb_trx_rseg_n_slots_debug = 32;
--enable_query_log
show variables like "max_connections";
show variables like "innodb_thread_concurrency";
show variables like "innodb_file_per_table";
--disable_warnings
drop database if exists mysqltest;
--enable_warnings
......
......@@ -19,7 +19,6 @@
--loose-innodb_sys_foreign_cols
--loose-innodb_changed_pages
--loose-innodb_rseg
--loose-innodb_undo_logs
--loose-innodb_sys_stats
--loose-innodb_table_stats
--loose-innodb_index_stats
......
......@@ -36,13 +36,13 @@ let $check_no_innodb=SELECT * FROM INFORMATION_SCHEMA.ENGINES
WHERE engine = 'innodb'
AND support IN ('YES', 'DEFAULT', 'ENABLED');
--let $restart_parameters= --innodb-thread-concurrency=1 --innodb-log-file-size=2m
--let $restart_parameters= --innodb-log-file-size=2m
--source include/start_mysqld.inc
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
CHECK TABLE t1;
--let $restart_parameters= --innodb-thread-concurrency=100 --innodb-log-file-size=20M
--let $restart_parameters= --innodb-log-file-size=20M
--source include/restart_mysqld.inc
BEGIN;
......
......@@ -1392,8 +1392,6 @@ VALUES(concat(REPEAT("a", 2000),REPEAT("b", 2000)), REPEAT("o", 4000));
ALTER TABLE worklog5743 ADD PRIMARY KEY `pk_idx` (col_1_varchar(3000));
ERROR 23000: Duplicate entry 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...' for key 'PRIMARY'
DROP TABLE worklog5743;
set global innodb_large_prefix=0;
ERROR HY000: Variable 'innodb_large_prefix' is a read only variable
CREATE TABLE worklog5743 (
col_1_varchar VARCHAR (4000) , col_2_varchar VARCHAR (4000) ,
PRIMARY KEY (col_1_varchar(3072))
......
......@@ -1301,8 +1301,6 @@ ALTER TABLE worklog5743 ADD PRIMARY KEY `pk_idx` (col_1_varchar(3000));
DROP TABLE worklog5743;
# -----------------------------------------------------------------------------
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global innodb_large_prefix=0;
CREATE TABLE worklog5743 (
col_1_varchar VARCHAR (4000) , col_2_varchar VARCHAR (4000) ,
PRIMARY KEY (col_1_varchar(3072))
......
......@@ -386,12 +386,6 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FLUSH_SYNC"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_HASH_INDEX"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_HASH_INDEX_PARTS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_MAX_SLEEP_DELAY"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_BK_COMMIT_INTERVAL"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_DISABLE_ROWLOCK"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_ENABLE_BINLOG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_ENABLE_MDL"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_TRX_LEVEL"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_AUTOEXTEND_INCREMENT"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_AUTOINC_LOCK_MODE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BACKGROUND_DROP_LIST_EMPTY"),
......@@ -401,7 +395,6 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_DUMP_PCT"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_EVICT"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_FILENAME"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_INSTANCES"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_LOAD_ABORT"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_LOAD_AT_STARTUP"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_LOAD_NOW"),
......@@ -410,15 +403,12 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHANGE_BUFFERING"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHANGE_BUFFERING_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHANGE_BUFFER_MAX_SIZE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHECKSUMS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHECKSUM_ALGORITHM"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CMP_PER_INDEX_ENABLED"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMMIT_CONCURRENCY"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESS_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESSION_FAILURE_THRESHOLD_PCT"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESSION_LEVEL"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESSION_PAD_PCT_MAX"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CONCURRENCY_TICKETS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DATA_FILE_PATH"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DATA_HOME_DIR"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DEFAULT_ROW_FORMAT"),
......@@ -460,9 +450,7 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOCKS_UNSAFE_FOR_BINLOG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_BUFFER_SIZE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_CHECKPOINT_NOW"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_CHECKSUMS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_COMPRESSED_PAGES"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_FILES_IN_GROUP"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_FILE_SIZE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_GROUP_HOME_DIR"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_WRITE_AHEAD_SIZE"),
......@@ -497,7 +485,6 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_READ_AHEAD_THRESHOLD"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_READ_IO_THREADS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_READ_ONLY"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_REPLICATION_DELAY"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ROLLBACK_ON_TIMEOUT"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ROLLBACK_SEGMENTS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SAVED_PAGE_NUMBER_DEBUG"),
......@@ -517,8 +504,6 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SYNC_SPIN_LOOPS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SYNC_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_TEMP_DATA_FILE_PATH"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_THREAD_CONCURRENCY"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_THREAD_SLEEP_DELAY"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_TRX_RSEG_N_SLOTS_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_UNDO_DIRECTORY"),
......
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
150000 Expected
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=100;
Warnings:
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=0;
Warnings:
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=100000;
Warnings:
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=1000000;
Warnings:
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=1000001;
Warnings:
Warning 1292 Truncated incorrect innodb_adaptive_max_sleep_delay value: '1000001'
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
1000000 Expected
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=4294967295;
Warnings:
Warning 1292 Truncated incorrect innodb_adaptive_max_sleep_delay value: '4294967295'
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
1000000 Expected
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=-1;
Warnings:
Warning 1292 Truncated incorrect innodb_adaptive_max_sleep_delay value: '-1'
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
0 Expected
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=-1024;
Warnings:
Warning 1292 Truncated incorrect innodb_adaptive_max_sleep_delay value: '-1024'
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@GLOBAL.innodb_adaptive_max_sleep_delay
0
0 Expected
SELECT COUNT(@@GLOBAL.innodb_adaptive_max_sleep_delay);
COUNT(@@GLOBAL.innodb_adaptive_max_sleep_delay)
1
1 Expected
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_adaptive_max_sleep_delay';
VARIABLE_VALUE
0
100 Expected
SELECT @@innodb_adaptive_max_sleep_delay = @@GLOBAL.innodb_adaptive_max_sleep_delay;
@@innodb_adaptive_max_sleep_delay = @@GLOBAL.innodb_adaptive_max_sleep_delay
1
1000000 Expected
SELECT COUNT(@@innodb_adaptive_max_sleep_delay);
COUNT(@@innodb_adaptive_max_sleep_delay)
1
1 Expected
SELECT COUNT(@@local.innodb_adaptive_max_sleep_delay);
ERROR HY000: Variable 'innodb_adaptive_max_sleep_delay' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_adaptive_max_sleep_delay);
ERROR HY000: Variable 'innodb_adaptive_max_sleep_delay' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT innodb_adaptive_max_sleep_delay = @@SESSION.innodb_adaptive_max_sleep_delay;
ERROR 42S22: Unknown column 'innodb_adaptive_max_sleep_delay' in 'field list'
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=150000;
Warnings:
Warning 138 The parameter innodb_adaptive_max_sleep_delay is deprecated and has no effect.
SET @start_global_value = @@global.innodb_background_scrub_data_check_interval;
#
# default value
#
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
set global innodb_background_scrub_data_check_interval=10;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
set global innodb_background_scrub_data_check_interval=DEFAULT;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
set global innodb_background_scrub_data_check_interval=20;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
set global innodb_background_scrub_data_check_interval=DEFAULT;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
#
# exists as global only
#
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
select @@session.innodb_background_scrub_data_check_interval;
ERROR HY000: Variable 'innodb_background_scrub_data_check_interval' is a GLOBAL variable
show global variables like 'innodb_background_scrub_data_check_interval';
Variable_name Value
innodb_background_scrub_data_check_interval 0
show session variables like 'innodb_background_scrub_data_check_interval';
Variable_name Value
innodb_background_scrub_data_check_interval 0
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_check_interval';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_CHECK_INTERVAL 0
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_check_interval';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_CHECK_INTERVAL 0
#
# show that it's writable
#
set global innodb_background_scrub_data_check_interval=10;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
set global innodb_background_scrub_data_check_interval=20;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
set global innodb_background_scrub_data_check_interval=1;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_check_interval;
@@global.innodb_background_scrub_data_check_interval
0
set session innodb_background_scrub_data_check_interval=1;
ERROR HY000: Variable 'innodb_background_scrub_data_check_interval' is a GLOBAL variable and should be set with SET GLOBAL
#
# incorrect types
#
set global innodb_background_scrub_data_check_interval=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_check_interval'
set global innodb_background_scrub_data_check_interval=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_check_interval'
set global innodb_background_scrub_data_check_interval="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_check_interval'
SET @@global.innodb_background_scrub_data_check_interval = @start_global_value;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_check_interval is deprecated and has no effect.
SET @start_global_value = @@global.innodb_background_scrub_data_compressed;
#
# exists as global only
#
select @@global.innodb_background_scrub_data_compressed;
@@global.innodb_background_scrub_data_compressed
0
select @@session.innodb_background_scrub_data_compressed;
ERROR HY000: Variable 'innodb_background_scrub_data_compressed' is a GLOBAL variable
show global variables like 'innodb_background_scrub_data_compressed';
Variable_name Value
innodb_background_scrub_data_compressed OFF
show session variables like 'innodb_background_scrub_data_compressed';
Variable_name Value
innodb_background_scrub_data_compressed OFF
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_compressed';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_COMPRESSED OFF
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_compressed';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_COMPRESSED OFF
#
# show that it's writable
#
set global innodb_background_scrub_data_compressed=ON;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_compressed is deprecated and has no effect.
select @@global.innodb_background_scrub_data_compressed;
@@global.innodb_background_scrub_data_compressed
0
set global innodb_background_scrub_data_compressed=OFF;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_compressed is deprecated and has no effect.
select @@global.innodb_background_scrub_data_compressed;
@@global.innodb_background_scrub_data_compressed
0
set global innodb_background_scrub_data_compressed=1;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_compressed is deprecated and has no effect.
select @@global.innodb_background_scrub_data_compressed;
@@global.innodb_background_scrub_data_compressed
0
set session innodb_background_scrub_data_compressed=1;
ERROR HY000: Variable 'innodb_background_scrub_data_compressed' is a GLOBAL variable and should be set with SET GLOBAL
#
# incorrect types
#
set global innodb_background_scrub_data_compressed=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_compressed'
set global innodb_background_scrub_data_compressed=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_compressed'
set global innodb_background_scrub_data_compressed="foo";
ERROR 42000: Variable 'innodb_background_scrub_data_compressed' can't be set to the value of 'foo'
SET @@global.innodb_background_scrub_data_compressed = @start_global_value;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_compressed is deprecated and has no effect.
SET @start_global_value = @@global.innodb_background_scrub_data_interval;
#
# exists as global only
#
select @@global.innodb_background_scrub_data_interval;
@@global.innodb_background_scrub_data_interval
0
select @@session.innodb_background_scrub_data_interval;
ERROR HY000: Variable 'innodb_background_scrub_data_interval' is a GLOBAL variable
show global variables like 'innodb_background_scrub_data_interval';
Variable_name Value
innodb_background_scrub_data_interval 0
show session variables like 'innodb_background_scrub_data_interval';
Variable_name Value
innodb_background_scrub_data_interval 0
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_interval';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_INTERVAL 0
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_interval';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_INTERVAL 0
#
# show that it's writable
#
set global innodb_background_scrub_data_interval=100;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_interval;
@@global.innodb_background_scrub_data_interval
0
set global innodb_background_scrub_data_interval=200;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_interval;
@@global.innodb_background_scrub_data_interval
0
set global innodb_background_scrub_data_interval=300;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_interval is deprecated and has no effect.
select @@global.innodb_background_scrub_data_interval;
@@global.innodb_background_scrub_data_interval
0
set session innodb_background_scrub_data_interval=400;
ERROR HY000: Variable 'innodb_background_scrub_data_interval' is a GLOBAL variable and should be set with SET GLOBAL
#
# incorrect types
#
set global innodb_background_scrub_data_interval=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_interval'
set global innodb_background_scrub_data_interval=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_interval'
set global innodb_background_scrub_data_interval="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_interval'
SET @@global.innodb_background_scrub_data_interval = @start_global_value;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_interval is deprecated and has no effect.
SET @start_global_value = @@global.innodb_background_scrub_data_uncompressed;
#
# exists as global only
#
select @@global.innodb_background_scrub_data_uncompressed;
@@global.innodb_background_scrub_data_uncompressed
0
select @@session.innodb_background_scrub_data_uncompressed;
ERROR HY000: Variable 'innodb_background_scrub_data_uncompressed' is a GLOBAL variable
show global variables like 'innodb_background_scrub_data_uncompressed';
Variable_name Value
innodb_background_scrub_data_uncompressed OFF
show session variables like 'innodb_background_scrub_data_uncompressed';
Variable_name Value
innodb_background_scrub_data_uncompressed OFF
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_uncompressed';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_UNCOMPRESSED OFF
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_uncompressed';
VARIABLE_NAME VARIABLE_VALUE
INNODB_BACKGROUND_SCRUB_DATA_UNCOMPRESSED OFF
#
# show that it's writable
#
set global innodb_background_scrub_data_uncompressed=ON;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_uncompressed is deprecated and has no effect.
select @@global.innodb_background_scrub_data_uncompressed;
@@global.innodb_background_scrub_data_uncompressed
0
set global innodb_background_scrub_data_uncompressed=OFF;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_uncompressed is deprecated and has no effect.
select @@global.innodb_background_scrub_data_uncompressed;
@@global.innodb_background_scrub_data_uncompressed
0
set global innodb_background_scrub_data_uncompressed=1;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_uncompressed is deprecated and has no effect.
select @@global.innodb_background_scrub_data_uncompressed;
@@global.innodb_background_scrub_data_uncompressed
0
set session innodb_background_scrub_data_uncompressed=1;
ERROR HY000: Variable 'innodb_background_scrub_data_uncompressed' is a GLOBAL variable and should be set with SET GLOBAL
#
# incorrect types
#
set global innodb_background_scrub_data_uncompressed=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_uncompressed'
set global innodb_background_scrub_data_uncompressed=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_background_scrub_data_uncompressed'
set global innodb_background_scrub_data_uncompressed="foo";
ERROR 42000: Variable 'innodb_background_scrub_data_uncompressed' can't be set to the value of 'foo'
SET @@global.innodb_background_scrub_data_uncompressed = @start_global_value;
Warnings:
Warning 138 The parameter innodb_background_scrub_data_uncompressed is deprecated and has no effect.
'#---------------------BS_STVARS_035_01----------------------#'
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
COUNT(@@GLOBAL.innodb_buffer_pool_instances)
1
1 Expected
'#---------------------BS_STVARS_035_02----------------------#'
SET @@GLOBAL.innodb_buffer_pool_instances=1;
ERROR HY000: Variable 'innodb_buffer_pool_instances' is a read only variable
Expected error 'Read only variable'
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
COUNT(@@GLOBAL.innodb_buffer_pool_instances)
1
1 Expected
'#---------------------BS_STVARS_035_03----------------------#'
SELECT @@GLOBAL.innodb_buffer_pool_instances = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_buffer_pool_instances';
@@GLOBAL.innodb_buffer_pool_instances = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
COUNT(@@GLOBAL.innodb_buffer_pool_instances)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_buffer_pool_instances';
COUNT(VARIABLE_VALUE)
1
1 Expected
'#---------------------BS_STVARS_035_04----------------------#'
SELECT @@innodb_buffer_pool_instances = @@GLOBAL.innodb_buffer_pool_instances;
@@innodb_buffer_pool_instances = @@GLOBAL.innodb_buffer_pool_instances
1
1 Expected
'#---------------------BS_STVARS_035_05----------------------#'
SELECT COUNT(@@innodb_buffer_pool_instances);
COUNT(@@innodb_buffer_pool_instances)
1
1 Expected
SELECT COUNT(@@local.innodb_buffer_pool_instances);
ERROR HY000: Variable 'innodb_buffer_pool_instances' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_buffer_pool_instances);
ERROR HY000: Variable 'innodb_buffer_pool_instances' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
COUNT(@@GLOBAL.innodb_buffer_pool_instances)
1
1 Expected
SELECT innodb_buffer_pool_instances = @@SESSION.innodb_buffer_pool_instances;
ERROR 42S22: Unknown column 'innodb_buffer_pool_instances' in 'field list'
Expected error 'Readonly variable'
SET @global_start_value = @@global.innodb_commit_concurrency;
SELECT @global_start_value;
@global_start_value
0
'#--------------------FN_DYNVARS_046_01------------------------#'
SET @@global.innodb_commit_concurrency = 0;
Warnings:
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SET @@global.innodb_commit_concurrency = DEFAULT;
Warnings:
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
'#---------------------FN_DYNVARS_046_02-------------------------#'
SET innodb_commit_concurrency = 1;
ERROR HY000: Variable 'innodb_commit_concurrency' is a GLOBAL variable and should be set with SET GLOBAL
SET GLOBAL innodb_commit_concurrency = 1;
Warnings:
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SELECT @@innodb_commit_concurrency;
@@innodb_commit_concurrency
0
SELECT local.innodb_commit_concurrency;
ERROR 42S02: Unknown table 'local' in field list
SET global innodb_commit_concurrency = 0;
Warnings:
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
'#--------------------FN_DYNVARS_046_03------------------------#'
SET @@global.innodb_commit_concurrency = 0;
Warnings:
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
'#--------------------FN_DYNVARS_046_04-------------------------#'
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @@global.innodb_commit_concurrency = -1;
Warnings:
Warning 1292 Truncated incorrect innodb_commit_concurrency value: '-1'
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @@global.innodb_commit_concurrency = "T";
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @@global.innodb_commit_concurrency = "Y";
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @@global.innodb_commit_concurrency = 1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @@global.innodb_commit_concurrency = 1001;
Warnings:
Warning 1292 Truncated incorrect innodb_commit_concurrency value: '1001'
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
'#----------------------FN_DYNVARS_046_05------------------------#'
SELECT @@global.innodb_commit_concurrency =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_commit_concurrency';
@@global.innodb_commit_concurrency =
VARIABLE_VALUE
1
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_commit_concurrency';
VARIABLE_VALUE
0
'#---------------------FN_DYNVARS_046_06-------------------------#'
SET @@global.innodb_commit_concurrency = OFF;
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @@global.innodb_commit_concurrency = ON;
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @@global.innodb_commit_concurrency = @global_start_value;
Warnings:
Warning 138 The parameter innodb_commit_concurrency is deprecated and has no effect.
SELECT @@global.innodb_commit_concurrency;
@@global.innodb_commit_concurrency
0
SET @global_start_value = @@global.innodb_concurrency_tickets;
SELECT @global_start_value;
@global_start_value
0
'#--------------------FN_DYNVARS_046_01------------------------#'
SET @@global.innodb_concurrency_tickets = 0;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SET @@global.innodb_concurrency_tickets = DEFAULT;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
'#---------------------FN_DYNVARS_046_02-------------------------#'
SET innodb_concurrency_tickets = 1;
ERROR HY000: Variable 'innodb_concurrency_tickets' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@innodb_concurrency_tickets;
@@innodb_concurrency_tickets
0
SELECT local.innodb_concurrency_tickets;
ERROR 42S02: Unknown table 'local' in field list
SET global innodb_concurrency_tickets = 0;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
'#--------------------FN_DYNVARS_046_03------------------------#'
SET @@global.innodb_concurrency_tickets = 1;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = 1000;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = 4294967295;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
'#--------------------FN_DYNVARS_046_04-------------------------#'
SET @@global.innodb_concurrency_tickets = 4294967296;
SELECT @@global.innodb_concurrency_tickets IN (4294967296,4294967295);
@@global.innodb_concurrency_tickets IN (4294967296,4294967295)
0
SET @@global.innodb_concurrency_tickets = 12345678901;
SELECT @@global.innodb_concurrency_tickets IN (12345678901,4294967295);
@@global.innodb_concurrency_tickets IN (12345678901,4294967295)
0
SET @@global.innodb_concurrency_tickets = 18446744073709551615;
SELECT @@global.innodb_concurrency_tickets IN (18446744073709551615,4294967295);
@@global.innodb_concurrency_tickets IN (18446744073709551615,4294967295)
0
'#--------------------FN_DYNVARS_046_05-------------------------#'
SET @@global.innodb_concurrency_tickets = -1;
Warnings:
Warning 1292 Truncated incorrect innodb_concurrency_tickets value: '-1'
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = -1024;
Warnings:
Warning 1292 Truncated incorrect innodb_concurrency_tickets value: '-1024'
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = "T";
ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = "Y";
ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = 1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = " ";
ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = ' ';
ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
'#----------------------FN_DYNVARS_046_06------------------------#'
SELECT @@global.innodb_concurrency_tickets =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_concurrency_tickets';
@@global.innodb_concurrency_tickets =
VARIABLE_VALUE
1
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_concurrency_tickets';
VARIABLE_VALUE
0
'#---------------------FN_DYNVARS_046_07-------------------------#'
SET @@global.innodb_concurrency_tickets = OFF;
ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = ON;
ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
'#---------------------FN_DYNVARS_046_08----------------------#'
SET @@global.innodb_concurrency_tickets = TRUE;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = FALSE;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @@global.innodb_concurrency_tickets = @global_start_value;
Warnings:
Warning 138 The parameter innodb_concurrency_tickets is deprecated and has no effect.
SELECT @@global.innodb_concurrency_tickets;
@@global.innodb_concurrency_tickets
0
SET @orig = @@global.innodb_log_checksums;
SELECT @orig;
@orig
1
SET GLOBAL innodb_log_checksums = 'crc32';
ERROR 42000: Variable 'innodb_log_checksums' can't be set to the value of 'crc32'
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET GLOBAL innodb_log_checksums = 2;
ERROR 42000: Variable 'innodb_log_checksums' can't be set to the value of '2'
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET GLOBAL innodb_log_checksums = 1e2;
ERROR 42000: Incorrect argument type to variable 'innodb_log_checksums'
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET GLOBAL innodb_log_checksums = 1.0;
ERROR 42000: Incorrect argument type to variable 'innodb_log_checksums'
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET innodb_log_checksums = OFF;
ERROR HY000: Variable 'innodb_log_checksums' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET GLOBAL innodb_log_checksums = OFF;
Warnings:
Warning 138 The parameter innodb_log_checksums is deprecated and has no effect.
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET GLOBAL innodb_log_checksums = default;
Warnings:
Warning 138 The parameter innodb_log_checksums is deprecated and has no effect.
SET GLOBAL innodb_log_checksums = ON;
Warnings:
Warning 138 The parameter innodb_log_checksums is deprecated and has no effect.
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET GLOBAL innodb_log_checksums = @orig;
Warnings:
Warning 138 The parameter innodb_log_checksums is deprecated and has no effect.
SELECT @@global.innodb_log_checksums;
@@global.innodb_log_checksums
1
SET @start_global_value = @@global.innodb_log_compressed_pages;
SELECT @start_global_value;
@start_global_value
1
'#---------------------BS_STVARS_028_01----------------------#'
SELECT COUNT(@@GLOBAL.innodb_log_compressed_pages);
COUNT(@@GLOBAL.innodb_log_compressed_pages)
1
1 Expected
'#---------------------BS_STVARS_028_02----------------------#'
SET @@global.innodb_log_compressed_pages = 0;
Warnings:
Warning 138 The parameter innodb_log_compressed_pages is deprecated and has no effect.
SELECT @@global.innodb_log_compressed_pages;
@@global.innodb_log_compressed_pages
1
SET @@global.innodb_log_compressed_pages ='On' ;
Warnings:
Warning 138 The parameter innodb_log_compressed_pages is deprecated and has no effect.
SELECT @@global.innodb_log_compressed_pages;
@@global.innodb_log_compressed_pages
1
SET @@global.innodb_log_compressed_pages ='Off' ;
Warnings:
Warning 138 The parameter innodb_log_compressed_pages is deprecated and has no effect.
SELECT @@global.innodb_log_compressed_pages;
@@global.innodb_log_compressed_pages
1
SET @@global.innodb_log_compressed_pages = 1;
Warnings:
Warning 138 The parameter innodb_log_compressed_pages is deprecated and has no effect.
SELECT @@global.innodb_log_compressed_pages;
@@global.innodb_log_compressed_pages
1
'#---------------------BS_STVARS_028_03----------------------#'
SELECT IF(@@GLOBAL.innodb_log_compressed_pages,'ON','OFF') = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_compressed_pages';
IF(@@GLOBAL.innodb_log_compressed_pages,'ON','OFF') = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(@@GLOBAL.innodb_log_compressed_pages);
COUNT(@@GLOBAL.innodb_log_compressed_pages)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_compressed_pages';
COUNT(VARIABLE_VALUE)
1
1 Expected
'#---------------------BS_STVARS_028_04----------------------#'
SELECT @@innodb_log_compressed_pages = @@GLOBAL.innodb_log_compressed_pages;
@@innodb_log_compressed_pages = @@GLOBAL.innodb_log_compressed_pages
1
1 Expected
'#---------------------BS_STVARS_028_05----------------------#'
SELECT COUNT(@@innodb_log_compressed_pages);
COUNT(@@innodb_log_compressed_pages)
1
1 Expected
SELECT COUNT(@@local.innodb_log_compressed_pages);
ERROR HY000: Variable 'innodb_log_compressed_pages' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_log_compressed_pages);
ERROR HY000: Variable 'innodb_log_compressed_pages' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_log_compressed_pages);
COUNT(@@GLOBAL.innodb_log_compressed_pages)
1
1 Expected
SELECT innodb_log_compressed_pages = @@SESSION.innodb_log_compressed_pages;
ERROR 42S22: Unknown column 'innodb_log_compressed_pages' in 'field list'
SET @@global.innodb_log_compressed_pages = @start_global_value;
Warnings:
Warning 138 The parameter innodb_log_compressed_pages is deprecated and has no effect.
SELECT @@global.innodb_log_compressed_pages;
@@global.innodb_log_compressed_pages
1
'#---------------------BS_STVARS_034_01----------------------#'
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
COUNT(@@GLOBAL.innodb_log_files_in_group)
1
1 Expected
'#---------------------BS_STVARS_034_02----------------------#'
SET @@GLOBAL.innodb_log_files_in_group=1;
ERROR HY000: Variable 'innodb_log_files_in_group' is a read only variable
Expected error 'Read only variable'
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
COUNT(@@GLOBAL.innodb_log_files_in_group)
1
1 Expected
'#---------------------BS_STVARS_034_03----------------------#'
SELECT @@GLOBAL.innodb_log_files_in_group = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_files_in_group';
@@GLOBAL.innodb_log_files_in_group = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
COUNT(@@GLOBAL.innodb_log_files_in_group)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_files_in_group';
COUNT(VARIABLE_VALUE)
1
1 Expected
'#---------------------BS_STVARS_034_04----------------------#'
SELECT @@innodb_log_files_in_group = @@GLOBAL.innodb_log_files_in_group;
@@innodb_log_files_in_group = @@GLOBAL.innodb_log_files_in_group
1
1 Expected
'#---------------------BS_STVARS_034_05----------------------#'
SELECT COUNT(@@innodb_log_files_in_group);
COUNT(@@innodb_log_files_in_group)
1
1 Expected
SELECT COUNT(@@local.innodb_log_files_in_group);
ERROR HY000: Variable 'innodb_log_files_in_group' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_log_files_in_group);
ERROR HY000: Variable 'innodb_log_files_in_group' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
COUNT(@@GLOBAL.innodb_log_files_in_group)
1
1 Expected
SELECT innodb_log_files_in_group = @@SESSION.innodb_log_files_in_group;
ERROR 42S22: Unknown column 'innodb_log_files_in_group' in 'field list'
Expected error 'Readonly variable'
SELECT COUNT(@@GLOBAL.innodb_log_optimize_ddl);
COUNT(@@GLOBAL.innodb_log_optimize_ddl)
1
1 Expected
SELECT COUNT(@@SESSION.innodb_log_optimize_ddl);
ERROR HY000: Variable 'innodb_log_optimize_ddl' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.innodb_log_optimize_ddl INTO @innodb_log_optimize_ddl_save;
SET @@GLOBAL.innodb_log_optimize_ddl = ON;
Warnings:
Warning 138 The parameter innodb_log_optimize_ddl is deprecated and has no effect.
SET @@GLOBAL.innodb_log_optimize_ddl = OFF;
Warnings:
Warning 138 The parameter innodb_log_optimize_ddl is deprecated and has no effect.
SET @@GLOBAL.innodb_log_optimize_ddl = 13;
ERROR 42000: Variable 'innodb_log_optimize_ddl' can't be set to the value of '13'
SET @@GLOBAL.innodb_log_optimize_ddl = 'ABC';
ERROR 42000: Variable 'innodb_log_optimize_ddl' can't be set to the value of 'ABC'
SELECT @@GLOBAL.innodb_log_optimize_ddl = 0
OR @@GLOBAL.innodb_log_optimize_ddl = 1 AS col;
col
1
1 Expected
SELECT @@innodb_log_optimize_ddl = @@GLOBAL.innodb_log_optimize_ddl AS col;
col
1
1 Expected
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_optimize_ddl';
VARIABLE_VALUE
OFF
SHOW VARIABLES WHERE VARIABLE_NAME='innodb_log_optimize_ddl';
Variable_name Value
innodb_log_optimize_ddl OFF
SELECT @@local.innodb_log_optimize_ddl;
ERROR HY000: Variable 'innodb_log_optimize_ddl' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT innodb_log_optimize_ddl;
ERROR 42S22: Unknown column 'innodb_log_optimize_ddl' in 'field list'
SET GLOBAL innodb_log_optimize_ddl = @innodb_log_optimize_ddl_save;
Warnings:
Warning 138 The parameter innodb_log_optimize_ddl is deprecated and has no effect.
SELECT COUNT(@@GLOBAL.innodb_page_cleaners);
COUNT(@@GLOBAL.innodb_page_cleaners)
1
1 Expected
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
1 Expected
SET @@GLOBAL.innodb_page_cleaners=2;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
2 Expected
SET @@GLOBAL.innodb_page_cleaners=1;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
1 Expected
SET @@GLOBAL.innodb_page_cleaners=6;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
6 Expected
SET @@GLOBAL.innodb_page_cleaners=4;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
4 Expected
SET @@GLOBAL.innodb_page_cleaners=0;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Warning expected
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
1 Expected
SELECT innodb_page_cleaners = @@SESSION.innodb_page_cleaners;
ERROR 42S22: Unknown column 'innodb_page_cleaners' in 'field list'
Expected error 'Read-only variable'
SELECT @@GLOBAL.innodb_page_cleaners = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_page_cleaners';
@@GLOBAL.innodb_page_cleaners = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_page_cleaners';
COUNT(VARIABLE_VALUE)
1
1 Expected
SELECT @@innodb_page_cleaners = @@GLOBAL.innodb_page_cleaners;
@@innodb_page_cleaners = @@GLOBAL.innodb_page_cleaners
1
1 Expected
SELECT COUNT(@@local.innodb_page_cleaners);
ERROR HY000: Variable 'innodb_page_cleaners' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_page_cleaners);
ERROR HY000: Variable 'innodb_page_cleaners' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME = 'innodb_page_cleaners';
VARIABLE_NAME VARIABLE_VALUE
INNODB_PAGE_CLEANERS 1
SET @start_global_value = @@global.innodb_replication_delay;
SELECT @start_global_value;
@start_global_value
0
Valid values are zero or above
select @@global.innodb_replication_delay >=0;
@@global.innodb_replication_delay >=0
1
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
select @@session.innodb_replication_delay;
ERROR HY000: Variable 'innodb_replication_delay' is a GLOBAL variable
show global variables like 'innodb_replication_delay';
Variable_name Value
innodb_replication_delay 0
show session variables like 'innodb_replication_delay';
Variable_name Value
innodb_replication_delay 0
select * from information_schema.global_variables where variable_name='innodb_replication_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_REPLICATION_DELAY 0
select * from information_schema.session_variables where variable_name='innodb_replication_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_REPLICATION_DELAY 0
set global innodb_replication_delay=10;
Warnings:
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
select * from information_schema.global_variables where variable_name='innodb_replication_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_REPLICATION_DELAY 0
select * from information_schema.session_variables where variable_name='innodb_replication_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_REPLICATION_DELAY 0
set session innodb_replication_delay=1;
ERROR HY000: Variable 'innodb_replication_delay' is a GLOBAL variable and should be set with SET GLOBAL
set global innodb_replication_delay=DEFAULT;
Warnings:
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
set global innodb_replication_delay=0;
Warnings:
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
set global innodb_replication_delay=65535;
Warnings:
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
set global innodb_replication_delay=4294967295;
Warnings:
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
set global innodb_replication_delay=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_replication_delay'
set global innodb_replication_delay=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_replication_delay'
set global innodb_replication_delay="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_replication_delay'
set global innodb_replication_delay=' ';
ERROR 42000: Incorrect argument type to variable 'innodb_replication_delay'
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
set global innodb_replication_delay=" ";
ERROR 42000: Incorrect argument type to variable 'innodb_replication_delay'
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
set global innodb_replication_delay=-7;
Warnings:
Warning 1292 Truncated incorrect innodb_replication_delay value: '-7'
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
set global innodb_replication_delay=-1024;
Warnings:
Warning 1292 Truncated incorrect innodb_replication_delay value: '-1024'
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
select @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
select * from information_schema.global_variables where variable_name='innodb_replication_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_REPLICATION_DELAY 0
SET @@global.innodb_replication_delay = 4294967296;
SELECT @@global.innodb_replication_delay IN (4294967296,4294967295);
@@global.innodb_replication_delay IN (4294967296,4294967295)
0
SET @@global.innodb_replication_delay = 12345678901;
SELECT @@global.innodb_replication_delay IN (12345678901,4294967295);
@@global.innodb_replication_delay IN (12345678901,4294967295)
0
SET @@global.innodb_replication_delay = 18446744073709551615;
SELECT @@global.innodb_replication_delay IN (18446744073709551615,4294967295);
@@global.innodb_replication_delay IN (18446744073709551615,4294967295)
0
SET @@global.innodb_replication_delay = @start_global_value;
Warnings:
Warning 138 The parameter innodb_replication_delay is deprecated and has no effect.
SELECT @@global.innodb_replication_delay;
@@global.innodb_replication_delay
0
SELECT @@GLOBAL.innodb_scrub_log;
@@GLOBAL.innodb_scrub_log
0
0 Expected
SET @@GLOBAL.innodb_scrub_log=1;
ERROR HY000: Variable 'innodb_scrub_log' is a read only variable
Expected error 'Read only variable'
SELECT @@GLOBAL.innodb_scrub_log;
@@GLOBAL.innodb_scrub_log
0
0 Expected
SELECT IF(@@GLOBAL.innodb_scrub_log, 'ON', 'OFF') = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log';
IF(@@GLOBAL.innodb_scrub_log, 'ON', 'OFF') = VARIABLE_VALUE
1
1 Expected
SELECT @@GLOBAL.innodb_scrub_log;
@@GLOBAL.innodb_scrub_log
0
0 Expected
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log';
VARIABLE_VALUE
OFF
0 Expected
SELECT @@innodb_scrub_log = @@GLOBAL.innodb_scrub_log;
@@innodb_scrub_log = @@GLOBAL.innodb_scrub_log
1
1 Expected
SELECT @@innodb_scrub_log;
@@innodb_scrub_log
0
0 Expected
SELECT @@local.innodb_scrub_log;
ERROR HY000: Variable 'innodb_scrub_log' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT @@SESSION.innodb_scrub_log;
ERROR HY000: Variable 'innodb_scrub_log' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.innodb_scrub_log;
@@GLOBAL.innodb_scrub_log
0
0 Expected
SELECT innodb_scrub_log;
ERROR 42S22: Unknown column 'innodb_scrub_log' in 'field list'
Expected error 'Unknow column in field list'
SELECT @@GLOBAL.innodb_scrub_log_speed;
@@GLOBAL.innodb_scrub_log_speed
256
200 Expected
SET @@GLOBAL.innodb_scrub_log_speed=100;
Warnings:
Warning 138 The parameter innodb_scrub_log_speed is deprecated and has no effect.
1 Expected
SELECT @@GLOBAL.innodb_scrub_log_speed;
@@GLOBAL.innodb_scrub_log_speed
256
100 Expected
SET @@GLOBAL.innodb_scrub_log_speed=DEFAULT;
Warnings:
Warning 138 The parameter innodb_scrub_log_speed is deprecated and has no effect.
1 Expected
SELECT @@GLOBAL.innodb_scrub_log_speed;
@@GLOBAL.innodb_scrub_log_speed
256
200 Expected
SELECT @@GLOBAL.innodb_scrub_log_speed = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log_speed';
@@GLOBAL.innodb_scrub_log_speed = VARIABLE_VALUE
1
1 Expected
SELECT @@GLOBAL.innodb_scrub_log_speed;
@@GLOBAL.innodb_scrub_log_speed
256
200 Expected
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log_speed';
VARIABLE_VALUE
256
200 Expected
SELECT @@innodb_scrub_log_speed = @@GLOBAL.innodb_scrub_log_speed;
@@innodb_scrub_log_speed = @@GLOBAL.innodb_scrub_log_speed
1
1 Expected
SELECT @@innodb_scrub_log_speed;
@@innodb_scrub_log_speed
256
200 Expected
SELECT @@local.innodb_scrub_log_speed;
ERROR HY000: Variable 'innodb_scrub_log_speed' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT @@SESSION.innodb_scrub_log_speed;
ERROR HY000: Variable 'innodb_scrub_log_speed' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.innodb_scrub_log_speed;
@@GLOBAL.innodb_scrub_log_speed
256
200 Expected
SELECT innodb_scrub_log_speed;
ERROR 42S22: Unknown column 'innodb_scrub_log_speed' in 'field list'
Expected error 'Unknow column in field list'
SET @global_start_value = @@global.innodb_thread_concurrency;
SELECT @global_start_value;
@global_start_value
0
'#--------------------FN_DYNVARS_046_01------------------------#'
SET @@global.innodb_thread_concurrency = 0;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SET @@global.innodb_thread_concurrency = DEFAULT;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
'#---------------------FN_DYNVARS_046_02-------------------------#'
SET innodb_thread_concurrency = 1;
ERROR HY000: Variable 'innodb_thread_concurrency' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@innodb_thread_concurrency;
@@innodb_thread_concurrency
0
SELECT local.innodb_thread_concurrency;
ERROR 42S02: Unknown table 'local' in field list
SET global innodb_thread_concurrency = 0;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
'#--------------------FN_DYNVARS_046_03------------------------#'
SET @@global.innodb_thread_concurrency = 0;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = 1;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = 1000;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
'#--------------------FN_DYNVARS_046_04-------------------------#'
SET @@global.innodb_thread_concurrency = -1;
Warnings:
Warning 1292 Truncated incorrect innodb_thread_concurrency value: '-1'
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = "T";
ERROR 42000: Incorrect argument type to variable 'innodb_thread_concurrency'
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = "Y";
ERROR 42000: Incorrect argument type to variable 'innodb_thread_concurrency'
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = ' ';
ERROR 42000: Incorrect argument type to variable 'innodb_thread_concurrency'
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = " ";
ERROR 42000: Incorrect argument type to variable 'innodb_thread_concurrency'
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = 1001;
Warnings:
Warning 1292 Truncated incorrect innodb_thread_concurrency value: '1001'
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = 255.01;
ERROR 42000: Incorrect argument type to variable 'innodb_thread_concurrency'
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
'#----------------------FN_DYNVARS_046_05------------------------#'
SELECT @@global.innodb_thread_concurrency =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_thread_concurrency';
@@global.innodb_thread_concurrency =
VARIABLE_VALUE
1
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_thread_concurrency';
VARIABLE_VALUE
0
'#---------------------FN_DYNVARS_046_06-------------------------#'
SET @@global.innodb_thread_concurrency = OFF;
ERROR 42000: Incorrect argument type to variable 'innodb_thread_concurrency'
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = ON;
ERROR 42000: Incorrect argument type to variable 'innodb_thread_concurrency'
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
'#---------------------FN_DYNVARS_046_07----------------------#'
SET @@global.innodb_thread_concurrency = TRUE;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = FALSE;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @@global.innodb_thread_concurrency = @global_start_value;
Warnings:
Warning 138 The parameter innodb_thread_concurrency is deprecated and has no effect.
SELECT @@global.innodb_thread_concurrency;
@@global.innodb_thread_concurrency
0
SET @start_global_value = @@global.innodb_thread_sleep_delay;
SELECT @start_global_value;
@start_global_value
0
Valid values are zero or above
select @@global.innodb_thread_sleep_delay >=0;
@@global.innodb_thread_sleep_delay >=0
1
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
select @@session.innodb_thread_sleep_delay;
ERROR HY000: Variable 'innodb_thread_sleep_delay' is a GLOBAL variable
show global variables like 'innodb_thread_sleep_delay';
Variable_name Value
innodb_thread_sleep_delay 0
show session variables like 'innodb_thread_sleep_delay';
Variable_name Value
innodb_thread_sleep_delay 0
select * from information_schema.global_variables where variable_name='innodb_thread_sleep_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_THREAD_SLEEP_DELAY 0
select * from information_schema.session_variables where variable_name='innodb_thread_sleep_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_THREAD_SLEEP_DELAY 0
set global innodb_thread_sleep_delay=10;
Warnings:
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
select * from information_schema.global_variables where variable_name='innodb_thread_sleep_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_THREAD_SLEEP_DELAY 0
select * from information_schema.session_variables where variable_name='innodb_thread_sleep_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_THREAD_SLEEP_DELAY 0
set session innodb_thread_sleep_delay=1;
ERROR HY000: Variable 'innodb_thread_sleep_delay' is a GLOBAL variable and should be set with SET GLOBAL
set global innodb_thread_sleep_delay=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_thread_sleep_delay'
set global innodb_thread_sleep_delay=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_thread_sleep_delay'
set global innodb_thread_sleep_delay="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_thread_sleep_delay'
set global innodb_thread_sleep_delay=18446744073709551616;
Warnings:
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
Warning 1292 Truncated incorrect innodb_thread_sleep_delay value: '9223372036854775807'
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
set global innodb_thread_sleep_delay=-7;
Warnings:
Warning 1292 Truncated incorrect innodb_thread_sleep_delay value: '-7'
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
select * from information_schema.global_variables where variable_name='innodb_thread_sleep_delay';
VARIABLE_NAME VARIABLE_VALUE
INNODB_THREAD_SLEEP_DELAY 0
set global innodb_thread_sleep_delay=0;
Warnings:
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
set global innodb_thread_sleep_delay=1000;
Warnings:
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
set global innodb_thread_sleep_delay=1000000;
Warnings:
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
set global innodb_thread_sleep_delay=1000001;
Warnings:
Warning 1292 Truncated incorrect innodb_thread_sleep_delay value: '1000001'
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
set global innodb_thread_sleep_delay=4294967295;
Warnings:
Warning 1292 Truncated incorrect innodb_thread_sleep_delay value: '4294967295'
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
set global innodb_thread_sleep_delay=555;
Warnings:
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
select @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
SET @@global.innodb_thread_sleep_delay = @start_global_value;
Warnings:
Warning 138 The parameter innodb_thread_sleep_delay is deprecated and has no effect.
SELECT @@global.innodb_thread_sleep_delay;
@@global.innodb_thread_sleep_delay
0
SELECT @@global.innodb_undo_logs;
@@global.innodb_undo_logs
128
SELECT @@session.innodb_undo_logs;
ERROR HY000: Variable 'innodb_undo_logs' is a GLOBAL variable
SHOW global variables LIKE 'innodb_undo_logs';
Variable_name Value
innodb_undo_logs 128
SHOW session variables LIKE 'innodb_undo_logs';
Variable_name Value
innodb_undo_logs 128
SELECT * FROM information_schema.global_variables
WHERE variable_name='innodb_undo_logs';
VARIABLE_NAME VARIABLE_VALUE
INNODB_UNDO_LOGS 128
SELECT * FROM information_schema.session_variables
WHERE variable_name='innodb_undo_logs';
VARIABLE_NAME VARIABLE_VALUE
INNODB_UNDO_LOGS 128
SET global innodb_undo_logs=100;
Warnings:
Warning 138 The parameter innodb_undo_logs is deprecated and has no effect.
SELECT @@global.innodb_undo_logs;
@@global.innodb_undo_logs
128
SET session innodb_undo_logs=1;
ERROR HY000: Variable 'innodb_undo_logs' is a GLOBAL variable and should be set with SET GLOBAL
SET global innodb_undo_logs=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_undo_logs'
SET global innodb_undo_logs=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_undo_logs'
SET global innodb_undo_logs="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_undo_logs'
SET global innodb_undo_logs=-7;
Warnings:
Warning 1292 Truncated incorrect innodb_undo_logs value: '-7'
Warning 138 The parameter innodb_undo_logs is deprecated and has no effect.
SELECT @@global.innodb_undo_logs;
@@global.innodb_undo_logs
128
SELECT * FROM information_schema.global_variables
WHERE variable_name='innodb_undo_logs';
VARIABLE_NAME VARIABLE_VALUE
INNODB_UNDO_LOGS 128
################## mysql-test/t/innodb_adaptive_max_sleep_delay.test ##########
# #
# Variable Name: innodb_adaptive_max_sleep_delay #
# Scope: Global #
# Access Type: Dynamic #
# Data Type: numeric #
# #
# Note: This variable is only defined if innodb_have_atomic_builtins=ON #
# #
# Creation Date: 2011-08-17 #
# Author : Sunny Bains #
# #
# #
# Description: Dynamic config global variable innodb_adaptive_max_sleep_delay #
# * Value check #
# * Scope check #
# #
###############################################################################
--source include/have_innodb.inc
# Check if builtins are enabled
if (`SELECT LOWER(VARIABLE_VALUE)='off' FROM INFORMATION_SCHEMA.GLOBAL_STATUS
WHERE LOWER(variable_name) = 'innodb_have_atomic_builtins'`) {
--skip Test requires InnoDB atomic builtins
}
# Display default value
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
--echo 150000 Expected
# Check if value can be set
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=100;
# Check for valid values
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=0;
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=100000;
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=1000000;
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
# Check for out of bounds
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=1000001;
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
--echo 1000000 Expected
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=4294967295;
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
--echo 1000000 Expected
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=-1;
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
--echo 0 Expected
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=-1024;
SELECT @@GLOBAL.innodb_adaptive_max_sleep_delay;
--echo 0 Expected
SELECT COUNT(@@GLOBAL.innodb_adaptive_max_sleep_delay);
--echo 1 Expected
# Check if the value in GLOBAL table matches value in variable
--disable_warnings
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_adaptive_max_sleep_delay';
--enable_warnings
--echo 100 Expected
# Check if accessing variable with and without GLOBAL point to same
# variable
SELECT @@innodb_adaptive_max_sleep_delay = @@GLOBAL.innodb_adaptive_max_sleep_delay;
--echo 1000000 Expected
# Check if innodb_adaptive_max_sleep_delay can be accessed with and
# without @@ sign.
SELECT COUNT(@@innodb_adaptive_max_sleep_delay);
--echo 1 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@local.innodb_adaptive_max_sleep_delay);
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@SESSION.innodb_adaptive_max_sleep_delay);
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_BAD_FIELD_ERROR
SELECT innodb_adaptive_max_sleep_delay = @@SESSION.innodb_adaptive_max_sleep_delay;
# Reset the default
SET @@GLOBAL.innodb_adaptive_max_sleep_delay=150000;
# bool global
--source include/have_innodb.inc
SET @start_global_value = @@global.innodb_background_scrub_data_check_interval;
--echo #
--echo # default value
--echo #
select @@global.innodb_background_scrub_data_check_interval;
set global innodb_background_scrub_data_check_interval=10;
select @@global.innodb_background_scrub_data_check_interval;
set global innodb_background_scrub_data_check_interval=DEFAULT;
select @@global.innodb_background_scrub_data_check_interval;
set global innodb_background_scrub_data_check_interval=20;
select @@global.innodb_background_scrub_data_check_interval;
set global innodb_background_scrub_data_check_interval=DEFAULT;
select @@global.innodb_background_scrub_data_check_interval;
--echo #
--echo # exists as global only
--echo #
select @@global.innodb_background_scrub_data_check_interval;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_background_scrub_data_check_interval;
show global variables like 'innodb_background_scrub_data_check_interval';
show session variables like 'innodb_background_scrub_data_check_interval';
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_check_interval';
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_check_interval';
--echo #
--echo # show that it's writable
--echo #
set global innodb_background_scrub_data_check_interval=10;
select @@global.innodb_background_scrub_data_check_interval;
set global innodb_background_scrub_data_check_interval=20;
select @@global.innodb_background_scrub_data_check_interval;
set global innodb_background_scrub_data_check_interval=1;
select @@global.innodb_background_scrub_data_check_interval;
--error ER_GLOBAL_VARIABLE
set session innodb_background_scrub_data_check_interval=1;
--echo #
--echo # incorrect types
--echo #
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_check_interval=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_check_interval=1e1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_check_interval="foo";
SET @@global.innodb_background_scrub_data_check_interval = @start_global_value;
# bool global
--source include/have_innodb.inc
SET @start_global_value = @@global.innodb_background_scrub_data_compressed;
--echo #
--echo # exists as global only
--echo #
select @@global.innodb_background_scrub_data_compressed;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_background_scrub_data_compressed;
show global variables like 'innodb_background_scrub_data_compressed';
show session variables like 'innodb_background_scrub_data_compressed';
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_compressed';
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_compressed';
--echo #
--echo # show that it's writable
--echo #
set global innodb_background_scrub_data_compressed=ON;
select @@global.innodb_background_scrub_data_compressed;
set global innodb_background_scrub_data_compressed=OFF;
select @@global.innodb_background_scrub_data_compressed;
set global innodb_background_scrub_data_compressed=1;
select @@global.innodb_background_scrub_data_compressed;
--error ER_GLOBAL_VARIABLE
set session innodb_background_scrub_data_compressed=1;
--echo #
--echo # incorrect types
--echo #
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_compressed=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_compressed=1e1;
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_background_scrub_data_compressed="foo";
SET @@global.innodb_background_scrub_data_compressed = @start_global_value;
# bool global
--source include/have_innodb.inc
SET @start_global_value = @@global.innodb_background_scrub_data_interval;
--echo #
--echo # exists as global only
--echo #
select @@global.innodb_background_scrub_data_interval;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_background_scrub_data_interval;
show global variables like 'innodb_background_scrub_data_interval';
show session variables like 'innodb_background_scrub_data_interval';
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_interval';
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_interval';
--echo #
--echo # show that it's writable
--echo #
set global innodb_background_scrub_data_interval=100;
select @@global.innodb_background_scrub_data_interval;
set global innodb_background_scrub_data_interval=200;
select @@global.innodb_background_scrub_data_interval;
set global innodb_background_scrub_data_interval=300;
select @@global.innodb_background_scrub_data_interval;
--error ER_GLOBAL_VARIABLE
set session innodb_background_scrub_data_interval=400;
--echo #
--echo # incorrect types
--echo #
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_interval=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_interval=1e1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_interval="foo";
SET @@global.innodb_background_scrub_data_interval = @start_global_value;
# bool global
--source include/have_innodb.inc
SET @start_global_value = @@global.innodb_background_scrub_data_uncompressed;
--echo #
--echo # exists as global only
--echo #
select @@global.innodb_background_scrub_data_uncompressed;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_background_scrub_data_uncompressed;
show global variables like 'innodb_background_scrub_data_uncompressed';
show session variables like 'innodb_background_scrub_data_uncompressed';
select * from information_schema.global_variables
where variable_name='innodb_background_scrub_data_uncompressed';
select * from information_schema.session_variables
where variable_name='innodb_background_scrub_data_uncompressed';
--echo #
--echo # show that it's writable
--echo #
set global innodb_background_scrub_data_uncompressed=ON;
select @@global.innodb_background_scrub_data_uncompressed;
set global innodb_background_scrub_data_uncompressed=OFF;
select @@global.innodb_background_scrub_data_uncompressed;
set global innodb_background_scrub_data_uncompressed=1;
select @@global.innodb_background_scrub_data_uncompressed;
--error ER_GLOBAL_VARIABLE
set session innodb_background_scrub_data_uncompressed=1;
--echo #
--echo # incorrect types
--echo #
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_uncompressed=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_background_scrub_data_uncompressed=1e1;
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_background_scrub_data_uncompressed="foo";
SET @@global.innodb_background_scrub_data_uncompressed = @start_global_value;
################## mysql-test\t\innodb_buffer_pool_instances_basic.test #######
# #
# Variable Name: innodb_buffer_pool_instances #
# Scope: Global #
# Access Type: Static #
# Data Type: numeric #
# #
# #
# Creation Date: 2008-02-07 #
# Author : Sharique Abdullah #
# #
# #
# Description:Test Cases of Dynamic System Variable #
# innodb_buffer_pool_instances #
# that checks the behavior of this variable in the following ways #
# * Value Check #
# * Scope Check #
# #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
# server-system-variables.html #
# #
###############################################################################
--source include/have_innodb.inc
--echo '#---------------------BS_STVARS_035_01----------------------#'
####################################################################
# Displaying default value #
####################################################################
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
--echo 1 Expected
--echo '#---------------------BS_STVARS_035_02----------------------#'
####################################################################
# Check if Value can set #
####################################################################
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET @@GLOBAL.innodb_buffer_pool_instances=1;
--echo Expected error 'Read only variable'
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
--echo 1 Expected
--echo '#---------------------BS_STVARS_035_03----------------------#'
#################################################################
# Check if the value in GLOBAL Table matches value in variable #
#################################################################
--disable_warnings
SELECT @@GLOBAL.innodb_buffer_pool_instances = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_buffer_pool_instances';
--enable_warnings
--echo 1 Expected
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
--echo 1 Expected
--disable_warnings
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_buffer_pool_instances';
--enable_warnings
--echo 1 Expected
--echo '#---------------------BS_STVARS_035_04----------------------#'
################################################################################
# Check if accessing variable with and without GLOBAL point to same variable #
################################################################################
SELECT @@innodb_buffer_pool_instances = @@GLOBAL.innodb_buffer_pool_instances;
--echo 1 Expected
--echo '#---------------------BS_STVARS_035_05----------------------#'
################################################################################
# Check if innodb_buffer_pool_instances can be accessed with and without @@ sign #
################################################################################
SELECT COUNT(@@innodb_buffer_pool_instances);
--echo 1 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@local.innodb_buffer_pool_instances);
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@SESSION.innodb_buffer_pool_instances);
--echo Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_buffer_pool_instances);
--echo 1 Expected
--Error ER_BAD_FIELD_ERROR
SELECT innodb_buffer_pool_instances = @@SESSION.innodb_buffer_pool_instances;
--echo Expected error 'Readonly variable'
################# mysql-test\t\innodb_commit_concurrency_basic.test ###########
# #
# Variable Name: innodb_commit_concurrency #
# Scope: GLOBAL #
# Access Type: Dynamic #
# Data Type: Numeric #
# Default Value: 0 #
# Range: 0-1000 #
# #
# #
# Creation Date: 2008-02-07 #
# Author: Rizwan #
# #
#Description:Test Cases of Dynamic System Variable innodb_commit_concurrency #
# that checks the behavior of this variable in the following ways #
# * Default Value #
# * Valid & Invalid values #
# * Scope & Access method #
# * Data Integrity #
# #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
# server-system-variables.html #
# #
###############################################################################
--source include/have_innodb.inc
--source include/load_sysvars.inc
########################################################################
# START OF innodb_commit_concurrency TESTS #
########################################################################
##############################################################################
# Saving initial value of innodb_commit_concurrency in a temporary variable#
##############################################################################
SET @global_start_value = @@global.innodb_commit_concurrency;
SELECT @global_start_value;
--echo '#--------------------FN_DYNVARS_046_01------------------------#'
########################################################################
# Display the DEFAULT value of innodb_commit_concurrency #
########################################################################
SET @@global.innodb_commit_concurrency = 0;
SET @@global.innodb_commit_concurrency = DEFAULT;
SELECT @@global.innodb_commit_concurrency;
--echo '#---------------------FN_DYNVARS_046_02-------------------------#'
################################################################################
# Check if innodb_commit_concurrency can be accessed with and without @@ sign#
################################################################################
--error ER_GLOBAL_VARIABLE
SET innodb_commit_concurrency = 1;
SET GLOBAL innodb_commit_concurrency = 1;
SELECT @@innodb_commit_concurrency;
--Error ER_UNKNOWN_TABLE
SELECT local.innodb_commit_concurrency;
SET global innodb_commit_concurrency = 0;
SELECT @@global.innodb_commit_concurrency;
--echo '#--------------------FN_DYNVARS_046_03------------------------#'
##########################################################################
# change the value of innodb_commit_concurrency to a valid value #
##########################################################################
SET @@global.innodb_commit_concurrency = 0;
SELECT @@global.innodb_commit_concurrency;
--echo '#--------------------FN_DYNVARS_046_04-------------------------#'
###########################################################################
# Change the value of innodb_commit_concurrency to invalid value #
###########################################################################
SELECT @@global.innodb_commit_concurrency;
SELECT @@global.innodb_commit_concurrency;
SET @@global.innodb_commit_concurrency = -1;
SELECT @@global.innodb_commit_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_commit_concurrency = "T";
SELECT @@global.innodb_commit_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_commit_concurrency = "Y";
SELECT @@global.innodb_commit_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_commit_concurrency = 1.1;
SELECT @@global.innodb_commit_concurrency;
SET @@global.innodb_commit_concurrency = 1001;
SELECT @@global.innodb_commit_concurrency;
--echo '#----------------------FN_DYNVARS_046_05------------------------#'
#########################################################################
# Check if the value in GLOBAL Table matches value in variable #
#########################################################################
--disable_warnings
SELECT @@global.innodb_commit_concurrency =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_commit_concurrency';
SELECT @@global.innodb_commit_concurrency;
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_commit_concurrency';
--enable_warnings
--echo '#---------------------FN_DYNVARS_046_06-------------------------#'
###################################################################
# Check if ON and OFF values can be used on variable #
###################################################################
--ERROR ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_commit_concurrency = OFF;
SELECT @@global.innodb_commit_concurrency;
--ERROR ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_commit_concurrency = ON;
SELECT @@global.innodb_commit_concurrency;
##############################
# Restore initial value #
##############################
SET @@global.innodb_commit_concurrency = @global_start_value;
SELECT @@global.innodb_commit_concurrency;
###############################################################
# END OF innodb_commit_concurrency TESTS #
###############################################################
################# mysql-test\t\innodb_concurrency_tickets_basic.test ##########
# #
# Variable Name: innodb_concurrency_tickets #
# Scope: GLOBAL #
# Access Type: Dynamic #
# Data Type: Numeric #
# Default Value: 5000 #
# Range: 1-4294967295 #
# #
# #
# Creation Date: 2008-02-07 #
# Author: Rizwan #
# #
#Description:Test Cases of Dynamic System Variable innodb_concurrency_tickets #
# that checks the behavior of this variable in the following ways #
# * Default Value #
# * Valid & Invalid values #
# * Scope & Access method #
# * Data Integrity #
# #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
# server-system-variables.html #
# #
###############################################################################
--source include/have_innodb.inc
--source include/load_sysvars.inc
########################################################################
# START OF innodb_concurrency_tickets TESTS #
########################################################################
################################################################################
# Saving initial value of innodb_concurrency_tickets in a temporary variable #
################################################################################
SET @global_start_value = @@global.innodb_concurrency_tickets;
SELECT @global_start_value;
--echo '#--------------------FN_DYNVARS_046_01------------------------#'
########################################################################
# Display the DEFAULT value of innodb_concurrency_tickets #
########################################################################
SET @@global.innodb_concurrency_tickets = 0;
SET @@global.innodb_concurrency_tickets = DEFAULT;
SELECT @@global.innodb_concurrency_tickets;
--echo '#---------------------FN_DYNVARS_046_02-------------------------#'
################################################################################
# Check if innodb_concurrency_tickets can be accessed with and without @@ sign #
################################################################################
--Error ER_GLOBAL_VARIABLE
SET innodb_concurrency_tickets = 1;
SELECT @@innodb_concurrency_tickets;
--Error ER_UNKNOWN_TABLE
SELECT local.innodb_concurrency_tickets;
SET global innodb_concurrency_tickets = 0;
SELECT @@global.innodb_concurrency_tickets;
--echo '#--------------------FN_DYNVARS_046_03------------------------#'
##########################################################################
# change the value of innodb_concurrency_tickets to a valid value #
##########################################################################
SET @@global.innodb_concurrency_tickets = 1;
SELECT @@global.innodb_concurrency_tickets;
SET @@global.innodb_concurrency_tickets = 1000;
SELECT @@global.innodb_concurrency_tickets;
SET @@global.innodb_concurrency_tickets = 4294967295;
SELECT @@global.innodb_concurrency_tickets;
--echo '#--------------------FN_DYNVARS_046_04-------------------------#'
###########################################################################
# Check the value of innodb_concurrency_tickets for out of bounds #
###########################################################################
# With a 64 bit mysqld:18446744073709551615,with a 32 bit mysqld: 4294967295
--disable_warnings
SET @@global.innodb_concurrency_tickets = 4294967296;
--enable_warnings
SELECT @@global.innodb_concurrency_tickets IN (4294967296,4294967295);
--disable_warnings
SET @@global.innodb_concurrency_tickets = 12345678901;
--enable_warnings
SELECT @@global.innodb_concurrency_tickets IN (12345678901,4294967295);
--disable_warnings
SET @@global.innodb_concurrency_tickets = 18446744073709551615;
--enable_warnings
SELECT @@global.innodb_concurrency_tickets IN (18446744073709551615,4294967295);
--echo '#--------------------FN_DYNVARS_046_05-------------------------#'
###########################################################################
# Change the value of innodb_concurrency_tickets to invalid value #
###########################################################################
SET @@global.innodb_concurrency_tickets = -1;
SELECT @@global.innodb_concurrency_tickets;
SET @@global.innodb_concurrency_tickets = -1024;
SELECT @@global.innodb_concurrency_tickets;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_concurrency_tickets = "T";
SELECT @@global.innodb_concurrency_tickets;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_concurrency_tickets = "Y";
SELECT @@global.innodb_concurrency_tickets;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_concurrency_tickets = 1.1;
SELECT @@global.innodb_concurrency_tickets;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_concurrency_tickets = " ";
SELECT @@global.innodb_concurrency_tickets;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_concurrency_tickets = ' ';
SELECT @@global.innodb_concurrency_tickets;
--echo '#----------------------FN_DYNVARS_046_06------------------------#'
#########################################################################
# Check if the value in GLOBAL Table matches value in variable #
#########################################################################
--disable_warnings
SELECT @@global.innodb_concurrency_tickets =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_concurrency_tickets';
--enable_warnings
SELECT @@global.innodb_concurrency_tickets;
--disable_warnings
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_concurrency_tickets';
--enable_warnings
--echo '#---------------------FN_DYNVARS_046_07-------------------------#'
###################################################################
# Check if ON and OFF values can be used on variable #
###################################################################
--ERROR ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_concurrency_tickets = OFF;
SELECT @@global.innodb_concurrency_tickets;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_concurrency_tickets = ON;
SELECT @@global.innodb_concurrency_tickets;
--echo '#---------------------FN_DYNVARS_046_08----------------------#'
###################################################################
# Check if TRUE and FALSE values can be used on variable #
###################################################################
SET @@global.innodb_concurrency_tickets = TRUE;
SELECT @@global.innodb_concurrency_tickets;
SET @@global.innodb_concurrency_tickets = FALSE;
SELECT @@global.innodb_concurrency_tickets;
##############################
# Restore initial value #
##############################
SET @@global.innodb_concurrency_tickets = @global_start_value;
SELECT @@global.innodb_concurrency_tickets;
###############################################################
# END OF innodb_concurrency_tickets TESTS #
###############################################################
--source include/have_innodb.inc
# Check the default value
SET @orig = @@global.innodb_log_checksums;
SELECT @orig;
-- error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL innodb_log_checksums = 'crc32';
SELECT @@global.innodb_log_checksums;
-- error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL innodb_log_checksums = 2;
SELECT @@global.innodb_log_checksums;
-- error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL innodb_log_checksums = 1e2;
SELECT @@global.innodb_log_checksums;
-- error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL innodb_log_checksums = 1.0;
SELECT @@global.innodb_log_checksums;
-- error ER_GLOBAL_VARIABLE
SET innodb_log_checksums = OFF;
SELECT @@global.innodb_log_checksums;
SET GLOBAL innodb_log_checksums = OFF;
SELECT @@global.innodb_log_checksums;
SET GLOBAL innodb_log_checksums = default;
SET GLOBAL innodb_log_checksums = ON;
SELECT @@global.innodb_log_checksums;
SET GLOBAL innodb_log_checksums = @orig;
SELECT @@global.innodb_log_checksums;
--source include/have_innodb.inc
SET @start_global_value = @@global.innodb_log_compressed_pages;
SELECT @start_global_value;
--echo '#---------------------BS_STVARS_028_01----------------------#'
####################################################################
# Displaying default value #
####################################################################
SELECT COUNT(@@GLOBAL.innodb_log_compressed_pages);
--echo 1 Expected
--echo '#---------------------BS_STVARS_028_02----------------------#'
####################################################################
# Check if Value can set #
####################################################################
SET @@global.innodb_log_compressed_pages = 0;
SELECT @@global.innodb_log_compressed_pages;
SET @@global.innodb_log_compressed_pages ='On' ;
SELECT @@global.innodb_log_compressed_pages;
SET @@global.innodb_log_compressed_pages ='Off' ;
SELECT @@global.innodb_log_compressed_pages;
SET @@global.innodb_log_compressed_pages = 1;
SELECT @@global.innodb_log_compressed_pages;
--echo '#---------------------BS_STVARS_028_03----------------------#'
#################################################################
# Check if the value in GLOBAL Table matches value in variable #
#################################################################
--disable_warnings
SELECT IF(@@GLOBAL.innodb_log_compressed_pages,'ON','OFF') = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_compressed_pages';
--enable_warnings
--echo 1 Expected
SELECT COUNT(@@GLOBAL.innodb_log_compressed_pages);
--echo 1 Expected
--disable_warnings
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_compressed_pages';
--enable_warnings
--echo 1 Expected
--echo '#---------------------BS_STVARS_028_04----------------------#'
################################################################################
# Check if accessing variable with and without GLOBAL point to same variable #
################################################################################
SELECT @@innodb_log_compressed_pages = @@GLOBAL.innodb_log_compressed_pages;
--echo 1 Expected
--echo '#---------------------BS_STVARS_028_05----------------------#'
################################################################################
# Check if innodb_log_compressed_pages can be accessed with and without @@ sign#
################################################################################
SELECT COUNT(@@innodb_log_compressed_pages);
--echo 1 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@local.innodb_log_compressed_pages);
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@SESSION.innodb_log_compressed_pages);
--echo Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_log_compressed_pages);
--echo 1 Expected
--Error ER_BAD_FIELD_ERROR
SELECT innodb_log_compressed_pages = @@SESSION.innodb_log_compressed_pages;
#
# Cleanup
#
SET @@global.innodb_log_compressed_pages = @start_global_value;
SELECT @@global.innodb_log_compressed_pages;
################## mysql-test\t\innodb_log_files_in_group_basic.test ##########
# #
# Variable Name: innodb_log_files_in_group #
# Scope: Global #
# Access Type: Static #
# Data Type: numeric #
# #
# #
# Creation Date: 2008-02-07 #
# Author : Sharique Abdullah #
# #
# #
# Description:Test Cases of Dynamic System Variable innodb_log_files_in_group #
# that checks the behavior of this variable in the following ways #
# * Value Check #
# * Scope Check #
# #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
# server-system-variables.html #
# #
###############################################################################
--source include/have_innodb.inc
--echo '#---------------------BS_STVARS_034_01----------------------#'
####################################################################
# Displaying default value #
####################################################################
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
--echo 1 Expected
--echo '#---------------------BS_STVARS_034_02----------------------#'
####################################################################
# Check if Value can set #
####################################################################
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET @@GLOBAL.innodb_log_files_in_group=1;
--echo Expected error 'Read only variable'
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
--echo 1 Expected
--echo '#---------------------BS_STVARS_034_03----------------------#'
#################################################################
# Check if the value in GLOBAL Table matches value in variable #
#################################################################
--disable_warnings
SELECT @@GLOBAL.innodb_log_files_in_group = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_files_in_group';
--enable_warnings
--echo 1 Expected
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
--echo 1 Expected
--disable_warnings
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_files_in_group';
--enable_warnings
--echo 1 Expected
--echo '#---------------------BS_STVARS_034_04----------------------#'
################################################################################
# Check if accessing variable with and without GLOBAL point to same variable #
################################################################################
SELECT @@innodb_log_files_in_group = @@GLOBAL.innodb_log_files_in_group;
--echo 1 Expected
--echo '#---------------------BS_STVARS_034_05----------------------#'
################################################################################
# Check if innodb_log_files_in_group can be accessed with and without @@ sign #
################################################################################
SELECT COUNT(@@innodb_log_files_in_group);
--echo 1 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@local.innodb_log_files_in_group);
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@SESSION.innodb_log_files_in_group);
--echo Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_log_files_in_group);
--echo 1 Expected
--Error ER_BAD_FIELD_ERROR
SELECT innodb_log_files_in_group = @@SESSION.innodb_log_files_in_group;
--echo Expected error 'Readonly variable'
############# suite/sys_vars/t/innodb_log_optimize_ddl_basic.test #############
# #
# Variable Name: innodb_log_optimize_ddl #
# Scope: Global #
# Access Type: Dynamic #
# Data Type: boolean #
# #
# The variable was introduced by #
# MDEV-16809 Allow full redo logging for ALTER TABLE #
# #
###############################################################################
--source include/have_innodb.inc
#### Reveal that the global innodb system variable exists
SELECT COUNT(@@GLOBAL.innodb_log_optimize_ddl);
--echo 1 Expected
#### Reveal that no session innodb system variable exists
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@SESSION.innodb_log_optimize_ddl);
--echo Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.innodb_log_optimize_ddl INTO @innodb_log_optimize_ddl_save;
#### Check if the value can be set
SET @@GLOBAL.innodb_log_optimize_ddl = ON;
SET @@GLOBAL.innodb_log_optimize_ddl = OFF;
#### Check if disallowed values are refused
--error ER_WRONG_VALUE_FOR_VAR
SET @@GLOBAL.innodb_log_optimize_ddl = 13;
--error ER_WRONG_VALUE_FOR_VAR
SET @@GLOBAL.innodb_log_optimize_ddl = 'ABC';
#### Check if the initial value was in the range of supported values
# We use 0 and 1 in order to avoid a warning.
SELECT @@GLOBAL.innodb_log_optimize_ddl = 0
OR @@GLOBAL.innodb_log_optimize_ddl = 1 AS col;
--echo 1 Expected
#### Check if the value presented without GLOBAL point is the same
SELECT @@innodb_log_optimize_ddl = @@GLOBAL.innodb_log_optimize_ddl AS col;
--echo 1 Expected
#### Show the value presented in information_schema and SHOW VARIABLES
# We do not want to get and than maybe suppress the print of
# Warning 1292 Truncated incorrect DOUBLE value: 'OFF'
# and so we simply print the value and do not compare.
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_log_optimize_ddl';
SHOW VARIABLES WHERE VARIABLE_NAME='innodb_log_optimize_ddl';
#### Show that variants with @@local. and without @@ do not exist.
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@local.innodb_log_optimize_ddl;
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_BAD_FIELD_ERROR
SELECT innodb_log_optimize_ddl;
#### Restore the initial value
SET GLOBAL innodb_log_optimize_ddl = @innodb_log_optimize_ddl_save;
# Variable name: innodb_page_cleaners
# Scope: Global
# Access type: Dynamic
# Data type: numeric
--source include/have_innodb.inc
SELECT COUNT(@@GLOBAL.innodb_page_cleaners);
--echo 1 Expected
SELECT @@innodb_page_cleaners;
--echo 1 Expected
SET @@GLOBAL.innodb_page_cleaners=2;
--echo Expected to pass
SELECT @@innodb_page_cleaners;
--echo 2 Expected
SET @@GLOBAL.innodb_page_cleaners=1;
--echo Expected to pass
SELECT @@innodb_page_cleaners;
--echo 1 Expected
SET @@GLOBAL.innodb_page_cleaners=6;
--echo Expected to pass
SELECT @@innodb_page_cleaners;
--echo 6 Expected
SET @@GLOBAL.innodb_page_cleaners=4;
--echo Expected to pass
SELECT @@innodb_page_cleaners;
--echo 4 Expected
SET @@GLOBAL.innodb_page_cleaners=0;
--echo Warning expected
SELECT @@innodb_page_cleaners;
--echo 1 Expected
--Error ER_BAD_FIELD_ERROR
SELECT innodb_page_cleaners = @@SESSION.innodb_page_cleaners;
--echo Expected error 'Read-only variable'
--disable_warnings
SELECT @@GLOBAL.innodb_page_cleaners = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_page_cleaners';
--enable_warnings
--echo 1 Expected
--disable_warnings
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_page_cleaners';
--enable_warnings
--echo 1 Expected
SELECT @@innodb_page_cleaners = @@GLOBAL.innodb_page_cleaners;
--echo 1 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@local.innodb_page_cleaners);
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT COUNT(@@SESSION.innodb_page_cleaners);
--echo Expected error 'Variable is a GLOBAL variable'
# Check the default value
--disable_warnings
SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME = 'innodb_page_cleaners';
--enable_warnings
#
# 2010-01-27 - Added
#
--source include/have_innodb.inc
SET @start_global_value = @@global.innodb_replication_delay;
SELECT @start_global_value;
#
# exists as global only
#
--echo Valid values are zero or above
select @@global.innodb_replication_delay >=0;
select @@global.innodb_replication_delay;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_replication_delay;
show global variables like 'innodb_replication_delay';
show session variables like 'innodb_replication_delay';
--disable_warnings
select * from information_schema.global_variables where variable_name='innodb_replication_delay';
select * from information_schema.session_variables where variable_name='innodb_replication_delay';
--enable_warnings
#
# show that it's writable
#
set global innodb_replication_delay=10;
select @@global.innodb_replication_delay;
--disable_warnings
select * from information_schema.global_variables where variable_name='innodb_replication_delay';
select * from information_schema.session_variables where variable_name='innodb_replication_delay';
--enable_warnings
--error ER_GLOBAL_VARIABLE
set session innodb_replication_delay=1;
#
# check the default value
#
set global innodb_replication_delay=DEFAULT;
select @@global.innodb_replication_delay;
#
# valid values
#
set global innodb_replication_delay=0;
select @@global.innodb_replication_delay;
set global innodb_replication_delay=65535;
select @@global.innodb_replication_delay;
set global innodb_replication_delay=4294967295;
select @@global.innodb_replication_delay;
#
# incorrect types
#
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_replication_delay=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_replication_delay=1e1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_replication_delay="foo";
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_replication_delay=' ';
select @@global.innodb_replication_delay;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_replication_delay=" ";
select @@global.innodb_replication_delay;
set global innodb_replication_delay=-7;
select @@global.innodb_replication_delay;
set global innodb_replication_delay=-1024;
select @@global.innodb_replication_delay;
--disable_warnings
select * from information_schema.global_variables where variable_name='innodb_replication_delay';
--enable_warnings
#
# Check for out of bounds
#
# With a 64 bit mysqld:18446744073709551615,with a 32 bit mysqld: 4294967295
--disable_warnings
SET @@global.innodb_replication_delay = 4294967296;
--enable_warnings
SELECT @@global.innodb_replication_delay IN (4294967296,4294967295);
--disable_warnings
SET @@global.innodb_replication_delay = 12345678901;
--enable_warnings
SELECT @@global.innodb_replication_delay IN (12345678901,4294967295);
--disable_warnings
SET @@global.innodb_replication_delay = 18446744073709551615;
--enable_warnings
SELECT @@global.innodb_replication_delay IN (18446744073709551615,4294967295);
#
# cleanup
#
SET @@global.innodb_replication_delay = @start_global_value;
SELECT @@global.innodb_replication_delay;
--source include/have_innodb.inc
# Display default value
SELECT @@GLOBAL.innodb_scrub_log;
--echo 0 Expected
# Check if value can be set
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET @@GLOBAL.innodb_scrub_log=1;
--echo Expected error 'Read only variable'
SELECT @@GLOBAL.innodb_scrub_log;
--echo 0 Expected
# Check if the value in GLOBAL TABLE matches value in variable
SELECT IF(@@GLOBAL.innodb_scrub_log, 'ON', 'OFF') = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log';
--echo 1 Expected
SELECT @@GLOBAL.innodb_scrub_log;
--echo 0 Expected
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log';
--echo 0 Expected
# Check if accessing variable with and without GLOBAL point to same variable
SELECT @@innodb_scrub_log = @@GLOBAL.innodb_scrub_log;
--echo 1 Expected
# Check if innodb_scrub_log can be accessed with and without @@ sign
SELECT @@innodb_scrub_log;
--echo 0 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@local.innodb_scrub_log;
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@SESSION.innodb_scrub_log;
--echo Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.innodb_scrub_log;
--echo 0 Expected
--Error ER_BAD_FIELD_ERROR
SELECT innodb_scrub_log;
--echo Expected error 'Unknow column in field list'
--source include/have_innodb.inc
# Display default value
SELECT @@GLOBAL.innodb_scrub_log_speed;
--echo 200 Expected
# Check if value can be set
SET @@GLOBAL.innodb_scrub_log_speed=100;
--echo 1 Expected
SELECT @@GLOBAL.innodb_scrub_log_speed;
--echo 100 Expected
SET @@GLOBAL.innodb_scrub_log_speed=DEFAULT;
--echo 1 Expected
SELECT @@GLOBAL.innodb_scrub_log_speed;
--echo 200 Expected
# Check if the value in GLOBAL TABLE matches value in variable
SELECT @@GLOBAL.innodb_scrub_log_speed = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log_speed';
--echo 1 Expected
SELECT @@GLOBAL.innodb_scrub_log_speed;
--echo 200 Expected
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_scrub_log_speed';
--echo 200 Expected
# Check if accessing variable with and without GLOBAL point to same variable
SELECT @@innodb_scrub_log_speed = @@GLOBAL.innodb_scrub_log_speed;
--echo 1 Expected
# Check if innodb_scrub_log_speed can be accessed with and without @@ sign
SELECT @@innodb_scrub_log_speed;
--echo 200 Expected
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@local.innodb_scrub_log_speed;
--echo Expected error 'Variable is a GLOBAL variable'
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@SESSION.innodb_scrub_log_speed;
--echo Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.innodb_scrub_log_speed;
--echo 200 Expected
--Error ER_BAD_FIELD_ERROR
SELECT innodb_scrub_log_speed;
--echo Expected error 'Unknow column in field list'
################# mysql-test\t\innodb_thread_concurrency_basic.test ###########
# #
# Variable Name: innodb_thread_concurrency #
# Scope: GLOBAL #
# Access Type: Dynamic #
# Data Type: Numeric #
# Default Value: 0 #
# Range: 0-1000 #
# #
# #
# Creation Date: 2008-02-07 #
# Author: Rizwan #
# #
#Description:Test Cases of Dynamic System Variable innodb_thread_concurrency #
# that checks the behavior of this variable in the following ways #
# * Default Value #
# * Valid & Invalid values #
# * Scope & Access method #
# * Data Integrity #
# #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
# server-system-variables.html #
# #
###############################################################################
--source include/have_innodb.inc
--source include/load_sysvars.inc
########################################################################
# START OF innodb_thread_concurrency TESTS #
########################################################################
################################################################################
# Saving initial value of innodb_thread_concurrency in a temporary variable #
################################################################################
SET @global_start_value = @@global.innodb_thread_concurrency;
SELECT @global_start_value;
--echo '#--------------------FN_DYNVARS_046_01------------------------#'
########################################################################
# Display the DEFAULT value of innodb_thread_concurrency #
########################################################################
SET @@global.innodb_thread_concurrency = 0;
SET @@global.innodb_thread_concurrency = DEFAULT;
SELECT @@global.innodb_thread_concurrency;
--echo '#---------------------FN_DYNVARS_046_02-------------------------#'
###############################################################################
# Check if innodb_thread_concurrency can be accessed with and without @@ sign #
###############################################################################
--Error ER_GLOBAL_VARIABLE
SET innodb_thread_concurrency = 1;
SELECT @@innodb_thread_concurrency;
--Error ER_UNKNOWN_TABLE
SELECT local.innodb_thread_concurrency;
SET global innodb_thread_concurrency = 0;
SELECT @@global.innodb_thread_concurrency;
--echo '#--------------------FN_DYNVARS_046_03------------------------#'
##########################################################################
# change the value of innodb_thread_concurrency to a valid value #
##########################################################################
SET @@global.innodb_thread_concurrency = 0;
SELECT @@global.innodb_thread_concurrency;
SET @@global.innodb_thread_concurrency = 1;
SELECT @@global.innodb_thread_concurrency;
SET @@global.innodb_thread_concurrency = 1000;
SELECT @@global.innodb_thread_concurrency;
--echo '#--------------------FN_DYNVARS_046_04-------------------------#'
###########################################################################
# Change the value of innodb_thread_concurrency to invalid value #
###########################################################################
SET @@global.innodb_thread_concurrency = -1;
SELECT @@global.innodb_thread_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_thread_concurrency = "T";
SELECT @@global.innodb_thread_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_thread_concurrency = "Y";
SELECT @@global.innodb_thread_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_thread_concurrency = ' ';
SELECT @@global.innodb_thread_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_thread_concurrency = " ";
SELECT @@global.innodb_thread_concurrency;
SET @@global.innodb_thread_concurrency = 1001;
SELECT @@global.innodb_thread_concurrency;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_thread_concurrency = 255.01;
SELECT @@global.innodb_thread_concurrency;
--echo '#----------------------FN_DYNVARS_046_05------------------------#'
#########################################################################
# Check if the value in GLOBAL Table matches value in variable #
#########################################################################
--disable_warnings
SELECT @@global.innodb_thread_concurrency =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_thread_concurrency';
--enable_warnings
SELECT @@global.innodb_thread_concurrency;
--disable_warnings
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_thread_concurrency';
--enable_warnings
--echo '#---------------------FN_DYNVARS_046_06-------------------------#'
###################################################################
# Check if ON and OFF values can be used on variable #
###################################################################
--ERROR ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_thread_concurrency = OFF;
SELECT @@global.innodb_thread_concurrency;
--ERROR ER_WRONG_TYPE_FOR_VAR
SET @@global.innodb_thread_concurrency = ON;
SELECT @@global.innodb_thread_concurrency;
--echo '#---------------------FN_DYNVARS_046_07----------------------#'
###################################################################
# Check if TRUE and FALSE values can be used on variable #
###################################################################
SET @@global.innodb_thread_concurrency = TRUE;
SELECT @@global.innodb_thread_concurrency;
SET @@global.innodb_thread_concurrency = FALSE;
SELECT @@global.innodb_thread_concurrency;
##############################
# Restore initial value #
##############################
SET @@global.innodb_thread_concurrency = @global_start_value;
SELECT @@global.innodb_thread_concurrency;
###############################################################
# END OF innodb_thread_concurrency TESTS #
###############################################################
#
# 2010-01-27 - Added
#
--source include/have_innodb.inc
SET @start_global_value = @@global.innodb_thread_sleep_delay;
SELECT @start_global_value;
#
# exists as global only
#
--echo Valid values are zero or above
select @@global.innodb_thread_sleep_delay >=0;
select @@global.innodb_thread_sleep_delay;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_thread_sleep_delay;
show global variables like 'innodb_thread_sleep_delay';
show session variables like 'innodb_thread_sleep_delay';
select * from information_schema.global_variables where variable_name='innodb_thread_sleep_delay';
select * from information_schema.session_variables where variable_name='innodb_thread_sleep_delay';
#
# show that it's writable
#
set global innodb_thread_sleep_delay=10;
select @@global.innodb_thread_sleep_delay;
select * from information_schema.global_variables where variable_name='innodb_thread_sleep_delay';
select * from information_schema.session_variables where variable_name='innodb_thread_sleep_delay';
--error ER_GLOBAL_VARIABLE
set session innodb_thread_sleep_delay=1;
#
# incorrect types
#
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_thread_sleep_delay=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_thread_sleep_delay=1e1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_thread_sleep_delay="foo";
set global innodb_thread_sleep_delay=18446744073709551616;
set global innodb_thread_sleep_delay=-7;
select @@global.innodb_thread_sleep_delay;
select * from information_schema.global_variables where variable_name='innodb_thread_sleep_delay';
#
# correct/overflowed values
#
set global innodb_thread_sleep_delay=0;
select @@global.innodb_thread_sleep_delay;
set global innodb_thread_sleep_delay=1000;
select @@global.innodb_thread_sleep_delay;
set global innodb_thread_sleep_delay=1000000;
select @@global.innodb_thread_sleep_delay;
set global innodb_thread_sleep_delay=1000001;
select @@global.innodb_thread_sleep_delay;
set global innodb_thread_sleep_delay=4294967295;
select @@global.innodb_thread_sleep_delay;
set global innodb_thread_sleep_delay=555;
select @@global.innodb_thread_sleep_delay;
#
# cleanup
#
SET @@global.innodb_thread_sleep_delay = @start_global_value;
SELECT @@global.innodb_thread_sleep_delay;
#
# 2011-08-01 Added
#
--source include/have_innodb.inc
#
# exists as global only
#
SELECT @@global.innodb_undo_logs;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.innodb_undo_logs;
SHOW global variables LIKE 'innodb_undo_logs';
SHOW session variables LIKE 'innodb_undo_logs';
--disable_warnings
SELECT * FROM information_schema.global_variables
WHERE variable_name='innodb_undo_logs';
SELECT * FROM information_schema.session_variables
WHERE variable_name='innodb_undo_logs';
--enable_warnings
SET global innodb_undo_logs=100;
SELECT @@global.innodb_undo_logs;
--error ER_GLOBAL_VARIABLE
SET session innodb_undo_logs=1;
#
# incorrect types
#
--error ER_WRONG_TYPE_FOR_VAR
SET global innodb_undo_logs=1.1;
--error ER_WRONG_TYPE_FOR_VAR
SET global innodb_undo_logs=1e1;
--error ER_WRONG_TYPE_FOR_VAR
SET global innodb_undo_logs="foo";
SET global innodb_undo_logs=-7;
SELECT @@global.innodb_undo_logs;
--disable_warnings
SELECT * FROM information_schema.global_variables
WHERE variable_name='innodb_undo_logs';
--enable_warnings
......@@ -5026,6 +5026,29 @@ static int init_server_components()
/* The following options were added after 5.6.10 */
MYSQL_TO_BE_IMPLEMENTED_OPTION("rpl-stop-slave-timeout"),
MYSQL_TO_BE_IMPLEMENTED_OPTION("validate-user-plugins"), // NO_EMBEDDED_ACCESS_CHECKS
/* The following options were deprecated in 10.5 or earlier */
MARIADB_REMOVED_OPTION("innodb-adaptive-max-sleep-delay"),
MARIADB_REMOVED_OPTION("innodb-background-scrub-data-check-interval"),
MARIADB_REMOVED_OPTION("innodb-background-scrub-data-compressed"),
MARIADB_REMOVED_OPTION("innodb-background-scrub-data-interval"),
MARIADB_REMOVED_OPTION("innodb-background-scrub-data-uncompressed"),
MARIADB_REMOVED_OPTION("innodb-buffer-pool-instances"),
MARIADB_REMOVED_OPTION("innodb-commit-concurrency"),
MARIADB_REMOVED_OPTION("innodb-concurrency-tickets"),
MARIADB_REMOVED_OPTION("innodb-file-format"),
MARIADB_REMOVED_OPTION("innodb-large-prefix"),
MARIADB_REMOVED_OPTION("innodb-log-checksums"),
MARIADB_REMOVED_OPTION("innodb-log-compressed-pages"),
MARIADB_REMOVED_OPTION("innodb-log-files-in-group"),
MARIADB_REMOVED_OPTION("innodb-log-optimize-ddl"),
MARIADB_REMOVED_OPTION("innodb-page-cleaners"),
MARIADB_REMOVED_OPTION("innodb-replication-delay"),
MARIADB_REMOVED_OPTION("innodb-scrub-log"),
MARIADB_REMOVED_OPTION("innodb-scrub-log-speed"),
MARIADB_REMOVED_OPTION("innodb-thread-concurrency"),
MARIADB_REMOVED_OPTION("innodb-thread-sleep-delay"),
MARIADB_REMOVED_OPTION("innodb-undo-logs"),
{0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
};
/*
......
......@@ -42,13 +42,19 @@ static const char *removed_variables[] =
"have_partitioning",
"innodb_adaptive_flushing_method",
"innodb_adaptive_hash_index_partitions",
"innodb_adaptive_max_sleep_delay",
"innodb_additional_mem_pool_size",
"innodb_api_bk_commit_interval",
"innodb_api_disable_rowlock",
"innodb_api_enable_binlog",
"innodb_api_enable_mdl",
"innodb_api_trx_level",
"innodb_background_scrub_data_check_interval",
"innodb_background_scrub_data_compressed",
"innodb_background_scrub_data_interval",
"innodb_background_scrub_data_uncompressed",
"innodb_blocking_buffer_pool_restore",
"innodb_buffer_pool_instances",
"innodb_buffer_pool_populate",
"innodb_buffer_pool_restore_at_startup",
"innodb_buffer_pool_shm_checksum",
......@@ -62,6 +68,8 @@ static const char *removed_variables[] =
"innodb_cleaner_lsn_age_factor",
"innodb_cleaner_max_flush_time",
"innodb_cleaner_max_lru_time",
"innodb_commit_concurrency",
"innodb_concurrency_tickets",
"innodb_corrupt_table_action",
"innodb_dict_size_limit",
"innodb_doublewrite_file",
......@@ -88,12 +96,16 @@ static const char *removed_variables[] =
"innodb_log_archive",
"innodb_log_block_size",
"innodb_log_checksum_algorithm",
"innodb_rollback_segments",
"innodb_log_checksums",
"innodb_log_compressed_pages",
"innodb_log_files_in_group",
"innodb_log_optimize_ddl",
"innodb_max_bitmap_file_size",
"innodb_max_changed_pages",
"innodb_merge_sort_block_size",
"innodb_mirrored_log_groups",
"innodb_mtflush_threads",
"innodb_page_cleaners",
"innodb_persistent_stats_root_page",
"innodb_print_lock_wait_timeout_info",
"innodb_purge_run_now",
......@@ -101,15 +113,22 @@ static const char *removed_variables[] =
"innodb_read_ahead",
"innodb_recovery_stats",
"innodb_recovery_update_relay_log",
"innodb_replication_delay",
"innodb_rollback_segments",
"innodb_scrub_log",
"innodb_scrub_log_speed",
"innodb_show_locks_held",
"innodb_show_verbose_locks",
"innodb_stats_auto_update",
"innodb_stats_sample_pages",
"innodb_stats_update_need_lock",
"innodb_support_xa",
"innodb_thread_concurrency",
"innodb_thread_concurrency_timer_based",
"innodb_thread_sleep_delay",
"innodb_track_changed_pages",
"innodb_track_redo_log_now",
"innodb_undo_logs",
"innodb_use_fallocate",
"innodb_use_global_flush_log_at_trx_commit",
"innodb_use_mtflush",
......
This diff is collapsed.
......@@ -451,9 +451,7 @@ log_set_capacity(ulonglong file_size)
free = LOG_CHECKPOINT_FREE_PER_THREAD * 10
+ LOG_CHECKPOINT_EXTRA_FREE;
if (free >= smallest_capacity / 2) {
ib::error() << "Cannot continue operation because log file is "
"too small. Increase innodb_log_file_size "
"or decrease innodb_thread_concurrency. "
ib::error() << "innodb_log_file_size is too small. "
<< INNODB_PARAMETERS_MSG;
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment