1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00
This commit is contained in:
Brave Galera Crew
2019-01-23 15:30:00 +04:00
committed by Sergey Vojtovich
parent 382115b992
commit 36a2a185fe
791 changed files with 28035 additions and 8865 deletions

View 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