1# 2# wsrep_restart_slave 3# 4# save the initial value 5SET @wsrep_restart_slave_global_saved = @@global.wsrep_restart_slave; 6# default 7SELECT @@global.wsrep_restart_slave; 8@@global.wsrep_restart_slave 90 10SELECT @@session.wsrep_restart_slave; 11ERROR HY000: Variable 'wsrep_restart_slave' is a GLOBAL variable 12 13# scope and valid values 14SET @@global.wsrep_restart_slave=OFF; 15SELECT @@global.wsrep_restart_slave; 16@@global.wsrep_restart_slave 170 18SET @@global.wsrep_restart_slave=ON; 19SELECT @@global.wsrep_restart_slave; 20@@global.wsrep_restart_slave 211 22 23# invalid values 24SET @@global.wsrep_restart_slave=NULL; 25ERROR 42000: Variable 'wsrep_restart_slave' can't be set to the value of 'NULL' 26SET @@global.wsrep_restart_slave='junk'; 27ERROR 42000: Variable 'wsrep_restart_slave' can't be set to the value of 'junk' 28 29# restore the initial value 30SET @@global.wsrep_restart_slave = @wsrep_restart_slave_global_saved; 31# End of test 32