mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
Merged lp:maria/maria-10.0-galera up to revision 3879. Added a new functions to handler API to forcefully abort_transaction, producing fake_trx_id, get_checkpoint and set_checkpoint for XA. These were added for future possiblity to add more storage engines that could use galera replication.
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
--source include/have_wsrep.inc
|
|
|
|
--echo #
|
|
--echo # wsrep_sync_wait
|
|
--echo #
|
|
|
|
--echo # save the initial values
|
|
SET @wsrep_sync_wait_global_saved = @@global.wsrep_sync_wait;
|
|
SET @wsrep_sync_wait_session_saved = @@session.wsrep_sync_wait;
|
|
|
|
--echo # default
|
|
SELECT @@global.wsrep_sync_wait;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
|
|
--echo
|
|
--echo # scope and valid values
|
|
SET @@global.wsrep_sync_wait=0;
|
|
SELECT @@global.wsrep_sync_wait;
|
|
SET @@global.wsrep_sync_wait=7;
|
|
SELECT @@global.wsrep_sync_wait;
|
|
|
|
SET @@session.wsrep_sync_wait=0;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
SET @@session.wsrep_sync_wait=7;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
SET @@session.wsrep_sync_wait=default;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
SET @@session.wsrep_sync_wait=8;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
|
|
--echo
|
|
--echo # invalid values
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
SET @@global.wsrep_sync_wait=NULL;
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
SET @@global.wsrep_sync_wait='junk';
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
SET @@session.wsrep_sync_wait=NULL;
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
SET @@session.wsrep_sync_wait='junk';
|
|
|
|
--echo
|
|
--echo # restore the initial values
|
|
SET @@global.wsrep_sync_wait = @wsrep_sync_wait_global_saved;
|
|
SET @@session.wsrep_sync_wait = @wsrep_sync_wait_session_saved;
|
|
|
|
--echo # End of test
|