summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/innodb_sched_priority_io_basic.test
blob: f77816e84c2afa88d8af614d0051eea53a7cc009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--source include/have_debug.inc
--source include/have_xtradb.inc
--source include/linux.inc
--source include/not_embedded.inc

# A dynamic, global variable

SET @start_value = @@GLOBAL.innodb_sched_priority_io;

# Default value
SELECT @@GLOBAL.innodb_sched_priority_io;

# Global only
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@SESSION.innodb_sched_priority_io;

# Correct values
# The high priority values may need permissions, thus do not test them
# SET GLOBAL innodb_sched_priority_io=39;
# SELECT @@GLOBAL.innodb_sched_priority_io;
#SET GLOBAL innodb_sched_priority_io=34;
# SELECT @@GLOBAL.innodb_sched_priorit_io;
SET GLOBAL innodb_sched_priority_io=19;
SELECT @@GLOBAL.innodb_sched_priority_io;
SET GLOBAL innodb_sched_priority_io=5;
SELECT @@GLOBAL.innodb_sched_priority_io;
SET GLOBAL innodb_sched_priority_io=0;
SELECT @@GLOBAL.innodb_sched_priority_io;

# Incorrect values
SET GLOBAL innodb_sched_priority_io=-1;
SELECT @@GLOBAL.innodb_sched_priority_io;
#SET GLOBAL innodb_sched_priority_io=40;
#SELECT @@GLOBAL.innodb_sched_priority_io;
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL innodb_sched_priority_io=1.1;
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL innodb_sched_priority_io=1e1;
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL innodb_sched_priority_io='foo';

# If we are lacking permissions, then we cannot restore the startup value
# at the end.
--source include/restart_mysqld.inc