summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/innodb_sched_priority_purge_basic.test
blob: bc37e4ee5685c37425108de839fca3227a91fe59 (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_purge;

# Default value
SELECT @@GLOBAL.innodb_sched_priority_purge;

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

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

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

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