1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Local merge of patch for MDEV-6377 from maria-5.5-galera.

This commit is contained in:
Nirbhay Choubey
2014-07-22 10:04:57 -04:00
parent efdf79b447
commit 05ff47cd4b
77 changed files with 3489 additions and 38 deletions

View File

@@ -0,0 +1,49 @@
--source include/have_wsrep.inc
--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