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.
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
#
|
|
# wsrep_sync_wait
|
|
#
|
|
# save the initial values
|
|
SET @wsrep_sync_wait_global_saved = @@global.wsrep_sync_wait;
|
|
SET @wsrep_sync_wait_session_saved = @@session.wsrep_sync_wait;
|
|
# default
|
|
SELECT @@global.wsrep_sync_wait;
|
|
@@global.wsrep_sync_wait
|
|
0
|
|
SELECT @@session.wsrep_sync_wait;
|
|
@@session.wsrep_sync_wait
|
|
0
|
|
|
|
# scope and valid values
|
|
SET @@global.wsrep_sync_wait=0;
|
|
SELECT @@global.wsrep_sync_wait;
|
|
@@global.wsrep_sync_wait
|
|
0
|
|
SET @@global.wsrep_sync_wait=7;
|
|
SELECT @@global.wsrep_sync_wait;
|
|
@@global.wsrep_sync_wait
|
|
7
|
|
SET @@session.wsrep_sync_wait=0;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
@@session.wsrep_sync_wait
|
|
0
|
|
SET @@session.wsrep_sync_wait=7;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
@@session.wsrep_sync_wait
|
|
7
|
|
SET @@session.wsrep_sync_wait=default;
|
|
SELECT @@session.wsrep_sync_wait;
|
|
@@session.wsrep_sync_wait
|
|
7
|
|
SET @@session.wsrep_sync_wait=8;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect wsrep_sync_wait value: '8'
|
|
SELECT @@session.wsrep_sync_wait;
|
|
@@session.wsrep_sync_wait
|
|
7
|
|
|
|
# invalid values
|
|
SET @@global.wsrep_sync_wait=NULL;
|
|
ERROR 42000: Incorrect argument type to variable 'wsrep_sync_wait'
|
|
SET @@global.wsrep_sync_wait='junk';
|
|
ERROR 42000: Incorrect argument type to variable 'wsrep_sync_wait'
|
|
SET @@session.wsrep_sync_wait=NULL;
|
|
ERROR 42000: Incorrect argument type to variable 'wsrep_sync_wait'
|
|
SET @@session.wsrep_sync_wait='junk';
|
|
ERROR 42000: Incorrect argument type to variable 'wsrep_sync_wait'
|
|
|
|
# restore the initial values
|
|
SET @@global.wsrep_sync_wait = @wsrep_sync_wait_global_saved;
|
|
SET @@session.wsrep_sync_wait = @wsrep_sync_wait_session_saved;
|
|
# End of test
|