1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

perfschema compilation, test and misc fixes

This commit is contained in:
Sergei Golubchik
2020-02-15 18:25:57 +01:00
parent 81cffda2e6
commit 7af733a5a2
403 changed files with 20147 additions and 63173 deletions

View File

@ -14,6 +14,7 @@
--disable_query_log
--source ../include/transaction_setup.inc
--enable_query_log
set global binlog_format=ROW;
--echo
--echo ========================================================================
@ -302,6 +303,7 @@ XA START 'XA_CON1_GTRID_001', 'XA_CON1_BQUAL_001', 1234567890;
--echo
--echo ## Expect 1 active XA transaction, state ACTIVE
--connection default
CALL transaction_verifier(0, @con1_thread_id, 'transaction', 'ACTIVE', 1234567890, 'XA_CON1_GTRID_001', 'XA_CON1_BQUAL_001', 'ACTIVE', '', 'READ WRITE', '', 'NO', 0, 0, 0, 1);
--echo
@ -407,6 +409,8 @@ CALL clear_transaction_tables();
--echo # STEP 8 - TRANSACTIONAL AND NON-TRANSACTIONAL TABLES
--echo ========================================================================
--echo
--echo ## MariaDB bug: MDEV-6012? MDEV-14436?
set @mariadb_bug=1;
## Statements that work with non-transactional engines have no effect on the
## transaction state of the connection. For implicit transactions,
@ -427,7 +431,7 @@ INSERT INTO nt1 VALUES (801, 'NON-TRANSACTIONAL');
--echo
--echo ## Expect 0 transactions in events_transactions_current
--connection default
CALL transaction_verifier(0, @con1_thread_id, 'transaction', '', 0, '', '', '', '', '', '', '', 0, 0, 0, 0);
CALL transaction_verifier(0, @con1_thread_id, 'transaction', '', 0, '', '', '', '', '', '', '', 0, 0, 0, @mariadb_bug);
--connection con1
COMMIT;
@ -435,7 +439,7 @@ COMMIT;
--echo
--echo ## Expect 0 transactions in events_transactions_history
--connection default
CALL transaction_verifier(1, @con1_thread_id, 'transaction', '', 0, '', '', '', '', '', '', '', 0, 0, 0, 0);
CALL transaction_verifier(1, @con1_thread_id, 'transaction', '', 0, '', '', '', '', '', '', '', 0, 0, 0, @mariadb_bug);
--echo
--echo #
@ -450,7 +454,7 @@ INSERT INTO nt1 VALUES (802, 'NON-TRANSACTIONAL');
--echo
--echo ## Expect 0 transactions in events_transactions_current
--connection default
CALL transaction_verifier(0, @con1_thread_id, 'transaction', '', 0, '', '', '', '', '', '', '', 0, 0, 0, 0);
CALL transaction_verifier(0, @con1_thread_id, 'transaction', '', 0, '', '', '', '', '', '', '', 0, 0, 0, @mariadb_bug);
--echo
--echo ## Now transactional. Transaction should be started.
@ -471,7 +475,7 @@ COMMIT;
--echo ## Expect 1 committed transaction in events_transactions_current and history
--connection default
CALL transaction_verifier(0, @con1_thread_id, 'transaction', 'COMMITTED', 0, '', '', '', '', 'READ WRITE', '', 'NO', 0, 0, 0, 1);
CALL transaction_verifier(1, @con1_thread_id, 'transaction', 'COMMITTED', 0, '', '', '', '', 'READ WRITE', '', 'NO', 0, 0, 0, 1);
CALL transaction_verifier(1, @con1_thread_id, 'transaction', 'COMMITTED', 0, '', '', '', '', 'READ WRITE', '', 'NO', 0, 0, 0, 1+@mariadb_bug);
CALL clear_transaction_tables();
--echo
@ -727,3 +731,4 @@ DROP TABLE t1;
DROP TABLE nt1;
--source ../include/transaction_cleanup.inc
set global binlog_format=default;