summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/r/wsrep_osu_method_basic.result
blob: 95b59e62adc4de5371bcf4c9cd509dae2a827b35 (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
#
# wsrep_osu_method
#
# save the initial value
SET @wsrep_osu_method_global_saved = @@global.wsrep_osu_method;
# default
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI

# scope
SELECT @@session.wsrep_osu_method;
ERROR HY000: Variable 'wsrep_OSU_method' is a GLOBAL variable
SET @@global.wsrep_osu_method=TOI;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI

# valid values
SET @@global.wsrep_osu_method=TOI;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI
SET @@global.wsrep_osu_method=RSU;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method="RSU";
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method=default;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI
SET @@global.wsrep_osu_method=1;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU

# invalid values
SET @@global.wsrep_osu_method=4;
ERROR 42000: Variable 'wsrep_OSU_method' can't be set to the value of '4'
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method=NULL;
ERROR 42000: Variable 'wsrep_OSU_method' can't be set to the value of 'NULL'
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method='junk';
ERROR 42000: Variable 'wsrep_OSU_method' can't be set to the value of 'junk'
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU

# restore the initial value
SET @@global.wsrep_osu_method = @wsrep_osu_method_global_saved;
# End of test