1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +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,4 +1,49 @@
--source include/galera_cluster.inc
--source include/have_innodb.inc
--source include/have_wsrep.inc
select @@global.wsrep_desync;
--echo #
--echo # wsrep_desync
--echo #
# expected as no wsrep provider is currently loaded
call mtr.add_suppression("WSREP: SET desync failed 9 for SET @@global.wsrep_desync=ON");
--echo # save the initial value
SET @wsrep_desync_global_saved = @@global.wsrep_desync;
--echo # default
SELECT @@global.wsrep_desync;
--echo
--echo # scope
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.wsrep_desync;
SET @@global.wsrep_desync=OFF;
SELECT @@global.wsrep_desync;
# expected as no wsrep provider is currently loaded
--error ER_CANNOT_USER
SET @@global.wsrep_desync=ON;
SELECT @@global.wsrep_desync;
--echo
--echo # valid values
SET @@global.wsrep_desync='OFF';
SELECT @@global.wsrep_desync;
# expected as no wsrep provider is currently loaded
--error ER_CANNOT_USER
SET @@global.wsrep_desync=ON;
SELECT @@global.wsrep_desync;
SET @@global.wsrep_desync=default;
SELECT @@global.wsrep_desync;
--echo
--echo # invalid values
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_desync=NULL;
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_desync='junk';
--echo
--echo # restore the initial value
SET @@global.wsrep_desync = @wsrep_desync_global_saved;
--echo # End of test