2014-09-08 13:19:20 -04:00
|
|
|
--source include/have_wsrep.inc
|
2014-08-06 15:39:15 +03:00
|
|
|
|
2014-09-08 13:19:20 -04:00
|
|
|
--echo #
|
|
|
|
--echo # wsrep_debug
|
|
|
|
--echo #
|
2014-08-06 15:39:15 +03:00
|
|
|
|
2014-09-08 13:19:20 -04:00
|
|
|
--echo # save the initial value
|
|
|
|
SET @wsrep_debug_global_saved = @@global.wsrep_debug;
|
2014-08-06 15:39:15 +03:00
|
|
|
|
2014-09-08 13:19:20 -04:00
|
|
|
--echo # default
|
|
|
|
SELECT @@global.wsrep_debug;
|
|
|
|
|
|
|
|
--echo
|
|
|
|
--echo # scope
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
|
|
SELECT @@session.wsrep_debug;
|
|
|
|
SET @@global.wsrep_debug=OFF;
|
|
|
|
SELECT @@global.wsrep_debug;
|
|
|
|
SET @@global.wsrep_debug=ON;
|
|
|
|
SELECT @@global.wsrep_debug;
|
|
|
|
|
|
|
|
--echo
|
|
|
|
--echo # valid values
|
|
|
|
SET @@global.wsrep_debug='OFF';
|
|
|
|
SELECT @@global.wsrep_debug;
|
|
|
|
SET @@global.wsrep_debug=ON;
|
|
|
|
SELECT @@global.wsrep_debug;
|
|
|
|
SET @@global.wsrep_debug=default;
|
|
|
|
SELECT @@global.wsrep_debug;
|
|
|
|
|
|
|
|
--echo
|
|
|
|
--echo # invalid values
|
|
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
|
|
SET @@global.wsrep_debug=NULL;
|
|
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
|
|
SET @@global.wsrep_debug='junk';
|
|
|
|
|
|
|
|
--echo
|
|
|
|
--echo # restore the initial value
|
|
|
|
SET @@global.wsrep_debug = @wsrep_debug_global_saved;
|
|
|
|
|
|
|
|
--echo # End of test
|