1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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,36 @@
--source include/galera_cluster.inc
--source include/have_innodb.inc
--source include/have_wsrep.inc
set @start_value = @@wsrep_replicate_myisam;
--echo #
--echo # wsrep_replicate_myisam
--echo #
set @@global.wsrep_replicate_myisam=ON;
set @@global.wsrep_replicate_myisam=OFF;
set @@global.wsrep_replicate_myisam=1;
set @@global.wsrep_replicate_myisam=0;
--Error 1231
SET @@global.wsrep_replicate_myisam = -1;
--echo # save the initial value
SET @wsrep_replicate_myisam_global_saved = @@global.wsrep_replicate_myisam;
set @@global.wsrep_replicate_myisam = @start_value;
--echo # default
SELECT @@global.wsrep_replicate_myisam;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.wsrep_replicate_myisam;
--echo
--echo # scope and valid values
#--error ER_INCORRECT_GLOBAL_LOCAL_VAR
#TODO: check if it is expected for variable to be dynamic?
SET @@global.wsrep_replicate_myisam=OFF;
SELECT @@global.wsrep_replicate_myisam;
#--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET @@global.wsrep_replicate_myisam=ON;
SELECT @@global.wsrep_replicate_myisam;
--echo
--echo # invalid values
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_replicate_myisam=NULL;
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_replicate_myisam='junk';
--echo
--echo # restore the initial value
SET @@global.wsrep_replicate_myisam = @wsrep_replicate_myisam_global_saved;
--echo # End of test