1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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,13 +1,42 @@
--source include/galera_cluster.inc
--source include/have_innodb.inc
--source include/have_wsrep.inc
set @start_value = @@wsrep_debug;
--echo #
--echo # wsrep_debug
--echo #
set @@global.wsrep_debug=ON;
set @@global.wsrep_debug=OFF;
set @@global.wsrep_debug=1;
set @@global.wsrep_debug=0;
--Error 1231
SET @@global.wsrep_debug = -1;
--echo # save the initial value
SET @wsrep_debug_global_saved = @@global.wsrep_debug;
set @@global.wsrep_debug = @start_value;
--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