summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/sys_vars/r/wsrep_sst_method_basic.result
blob: 51f167b8f47868f0f83f48c584676cc935f6a6d8 (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
#
# wsrep_sst_method
#
# save the initial value
SET @wsrep_sst_method_global_saved = @@global.wsrep_sst_method;
# default
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
rsync

# scope
SELECT @@session.wsrep_sst_method;
ERROR HY000: Variable 'wsrep_sst_method' is a GLOBAL variable
SET @@global.wsrep_sst_method=rsync;
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
rsync

# valid values
SET @@global.wsrep_sst_method=rsync;
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
rsync
SET @@global.wsrep_sst_method=mysqldump;
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
mysqldump
SET @@global.wsrep_sst_method=xtrabackup;
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
xtrabackup
SET @@global.wsrep_sst_method="xtrabackup-v2";
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
xtrabackup-v2
SET @@global.wsrep_sst_method="mariabackup";
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
mariabackup
SET @@global.wsrep_sst_method=default;
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
rsync
SET @@global.wsrep_sst_method='junk';
SELECT @@global.wsrep_sst_method;
@@global.wsrep_sst_method
junk

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

# restore the initial value
SET @@global.wsrep_sst_method = @wsrep_sst_method_global_saved;
# End of test