summaryrefslogtreecommitdiffstats
path: root/storage/rocksdb/mysql-test/rocksdb_sys_vars/r/rocksdb_reset_stats_basic.result
blob: d585e73489c2744ef6b290c742de4925fbe16350 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
CREATE TABLE valid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO valid_values VALUES(1);
INSERT INTO valid_values VALUES(0);
INSERT INTO valid_values VALUES('on');
INSERT INTO valid_values VALUES('off');
INSERT INTO valid_values VALUES('true');
INSERT INTO valid_values VALUES('false');
CREATE TABLE invalid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO invalid_values VALUES('\'aaa\'');
INSERT INTO invalid_values VALUES('\'bbb\'');
SET @start_global_value = @@global.ROCKSDB_RESET_STATS;
SELECT @start_global_value;
@start_global_value
0
'# Setting to valid values in global scope#'
"Trying to set variable @@global.ROCKSDB_RESET_STATS to 1"
SET @@global.ROCKSDB_RESET_STATS   = 1;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
1
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_RESET_STATS = DEFAULT;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Trying to set variable @@global.ROCKSDB_RESET_STATS to 0"
SET @@global.ROCKSDB_RESET_STATS   = 0;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_RESET_STATS = DEFAULT;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Trying to set variable @@global.ROCKSDB_RESET_STATS to on"
SET @@global.ROCKSDB_RESET_STATS   = on;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
1
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_RESET_STATS = DEFAULT;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Trying to set variable @@global.ROCKSDB_RESET_STATS to off"
SET @@global.ROCKSDB_RESET_STATS   = off;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_RESET_STATS = DEFAULT;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Trying to set variable @@global.ROCKSDB_RESET_STATS to true"
SET @@global.ROCKSDB_RESET_STATS   = true;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
1
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_RESET_STATS = DEFAULT;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Trying to set variable @@global.ROCKSDB_RESET_STATS to false"
SET @@global.ROCKSDB_RESET_STATS   = false;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_RESET_STATS = DEFAULT;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Trying to set variable @@session.ROCKSDB_RESET_STATS to 444. It should fail because it is not session."
SET @@session.ROCKSDB_RESET_STATS   = 444;
ERROR HY000: Variable 'rocksdb_reset_stats' is a GLOBAL variable and should be set with SET GLOBAL
'# Testing with invalid values in global scope #'
"Trying to set variable @@global.ROCKSDB_RESET_STATS to 'aaa'"
SET @@global.ROCKSDB_RESET_STATS   = 'aaa';
Got one of the listed errors
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
"Trying to set variable @@global.ROCKSDB_RESET_STATS to 'bbb'"
SET @@global.ROCKSDB_RESET_STATS   = 'bbb';
Got one of the listed errors
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
SET @@global.ROCKSDB_RESET_STATS = @start_global_value;
SELECT @@global.ROCKSDB_RESET_STATS;
@@global.ROCKSDB_RESET_STATS
0
DROP TABLE valid_values;
DROP TABLE invalid_values;