mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merged sys_vars.wsrep_* tests from maria-10.0-galera tree.
This commit is contained in:
@ -1,12 +1,54 @@
|
||||
set @start_value = @@wsrep_sst_method;
|
||||
set @@global.wsrep_sst_method='xtrabackup';
|
||||
set @@global.wsrep_sst_method='xtrabackup-v2';
|
||||
set @@global.wsrep_sst_method='rsync';
|
||||
set @@global.wsrep_sst_method='mysqldump';
|
||||
set @@global.wsrep_sst_method='myscript';
|
||||
set @@global.wsrep_sst_method='skip';
|
||||
set @@global.wsrep_sst_method=NULL;
|
||||
#
|
||||
# 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=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'
|
||||
SET @@global.wsrep_sst_method = -1;
|
||||
ERROR 42000: Incorrect argument type to variable 'wsrep_sst_method'
|
||||
set @@global.wsrep_sst_method = @start_value;
|
||||
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
|
||||
|
Reference in New Issue
Block a user