mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Galera4
This commit is contained in:
committed by
Sergey Vojtovich
parent
382115b992
commit
36a2a185fe
35
mysql-test/suite/galera/t/galera_commit_empty.test
Normal file
35
mysql-test/suite/galera/t/galera_commit_empty.test
Normal file
@@ -0,0 +1,35 @@
|
||||
# Test empty transactions.
|
||||
#
|
||||
# Check that the empty transaction gets terminated by starting and new
|
||||
# transaction after it. If the empty transaction is not terminated
|
||||
# appropriately, the following START TRANSACTION will fail.
|
||||
#
|
||||
# Also check that empty transactions don't generate any write sets.
|
||||
#
|
||||
|
||||
--source include/galera_cluster.inc
|
||||
--source include/have_innodb.inc
|
||||
|
||||
--let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
|
||||
|
||||
START TRANSACTION;
|
||||
COMMIT;
|
||||
|
||||
START TRANSACTION;
|
||||
COMMIT;
|
||||
|
||||
START TRANSACTION READ ONLY;
|
||||
COMMIT;
|
||||
|
||||
START TRANSACTION;
|
||||
COMMIT;
|
||||
|
||||
START TRANSACTION;
|
||||
START TRANSACTION;
|
||||
COMMIT;
|
||||
|
||||
--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
|
||||
|
||||
--disable_query_log
|
||||
--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before AS wsrep_last_committed_diff
|
||||
--enable_query_log
|
Reference in New Issue
Block a user