summaryrefslogtreecommitdiffstats
path: root/storage/rocksdb/mysql-test/rocksdb_sys_vars/r/rocksdb_max_manual_compactions_basic.result
blob: 815506ccac8cf43950cbf2677481bb873de72e2e (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
45
46
47
48
49
50
51
52
53
54
55
56
57
CREATE TABLE valid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO valid_values VALUES(1);
INSERT INTO valid_values VALUES(1024);
INSERT INTO valid_values VALUES(512*1024*1024);
CREATE TABLE invalid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO invalid_values VALUES('\'aaa\'');
SET @start_global_value = @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
SELECT @start_global_value;
@start_global_value
10
'# Setting to valid values in global scope#'
"Trying to set variable @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS to 1"
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS   = 1;
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
1
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS = DEFAULT;
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
10
"Trying to set variable @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS to 1024"
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS   = 1024;
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
1024
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS = DEFAULT;
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
10
"Trying to set variable @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS to 536870912"
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS   = 536870912;
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
536870912
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS = DEFAULT;
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
10
"Trying to set variable @@session.ROCKSDB_MAX_MANUAL_COMPACTIONS to 444. It should fail because it is not session."
SET @@session.ROCKSDB_MAX_MANUAL_COMPACTIONS   = 444;
ERROR HY000: Variable 'rocksdb_max_manual_compactions' is a GLOBAL variable and should be set with SET GLOBAL
'# Testing with invalid values in global scope #'
"Trying to set variable @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS to 'aaa'"
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS   = 'aaa';
Got one of the listed errors
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
10
SET @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS = @start_global_value;
SELECT @@global.ROCKSDB_MAX_MANUAL_COMPACTIONS;
@@global.ROCKSDB_MAX_MANUAL_COMPACTIONS
10
DROP TABLE valid_values;
DROP TABLE invalid_values;