1
0
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:
Nirbhay Choubey
2014-09-08 13:19:20 -04:00
parent 7c58dd80e5
commit 26e048ffd3
75 changed files with 3166 additions and 1004 deletions

View File

@ -1,8 +1,31 @@
set @start_value = @@wsrep_restart_slave;
set @@global.wsrep_restart_slave=ON;
set @@global.wsrep_restart_slave=OFF;
set @@global.wsrep_restart_slave=1;
set @@global.wsrep_restart_slave=0;
SET @@global.wsrep_restart_slave = -1;
ERROR 42000: Variable 'wsrep_restart_slave' can't be set to the value of '-1'
set @@global.wsrep_restart_slave = @start_value;
#
# wsrep_restart_slave
#
# save the initial value
SET @wsrep_restart_slave_global_saved = @@global.wsrep_restart_slave;
# default
SELECT @@global.wsrep_restart_slave;
@@global.wsrep_restart_slave
0
SELECT @@session.wsrep_restart_slave;
ERROR HY000: Variable 'wsrep_restart_slave' is a GLOBAL variable
# scope and valid values
SET @@global.wsrep_restart_slave=OFF;
SELECT @@global.wsrep_restart_slave;
@@global.wsrep_restart_slave
0
SET @@global.wsrep_restart_slave=ON;
SELECT @@global.wsrep_restart_slave;
@@global.wsrep_restart_slave
1
# invalid values
SET @@global.wsrep_restart_slave=NULL;
ERROR 42000: Variable 'wsrep_restart_slave' can't be set to the value of 'NULL'
SET @@global.wsrep_restart_slave='junk';
ERROR 42000: Variable 'wsrep_restart_slave' can't be set to the value of 'junk'
# restore the initial value
SET @@global.wsrep_restart_slave = @wsrep_restart_slave_global_saved;
# End of test