mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
42 lines
903 B
Text
42 lines
903 B
Text
--source include/have_wsrep.inc
|
|
|
|
--echo #
|
|
--echo # wsrep_debug
|
|
--echo #
|
|
|
|
--echo # save the initial value
|
|
SET @wsrep_debug_global_saved = @@global.wsrep_debug;
|
|
|
|
--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
|