Debian Codegraph @

mysql-test/suite/perfschema/include/show_transaction_gtid.inc

raw
1 # ==== Purpose ====
2 #
3 # Auxiliary file used by transaction_gtid.test
4 #
5 # Invoked to check the contents of the
6 # performance_schema.events_transaction_[current|history] tables and
7 # write the result to the result log. This is executed on the
8 # 'server_1' connection and shows only status of transactions on the
9 # 'default' connection.
10
11 --connection server_1
12
13 --replace_result $server_uuid SERVER_UUID aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa A
14 --let $history_result= `SELECT GTID FROM performance_schema.events_transactions_history WHERE THREAD_ID = $thread_id`
15 if ($history_result == '')
16 {
17 --let $history_result= none
18 }
19
20 --replace_result $server_uuid SERVER_UUID aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa A
21 --let $current_result= `SELECT GTID FROM performance_schema.events_transactions_current WHERE THREAD_ID = $thread_id`
22 if ($current_result == '')
23 {
24 --let $current_result= none
25 }
26
27 --echo - history=$history_result current=$current_result
28
29 --connection default