Debian Codegraph @

mysql-test/suite/binlog/t/binlog_transaction_length.test

raw
1 ################################################################################
2 # Validate that logged transactions have the correct transaction length on the
3 # GTID event.
4 #
5 # Test:
6 # 0. The test requires one server: M1, with binary log in row format.
7 # 1. Run a transaction with 5 events: GTID, Begin, Table_map, Write_rows, Commit.
8 # When compressed it will only have 2 events: GTID, Transaction_Payload
9 # 2. Assert that the transaction length is correct, with and without compression
10 # (which will be enabled on the MTR collection).
11 ################################################################################
12 --source include/have_binlog_format_row.inc
13 RESET MASTER;
14
15 --echo
16 --echo ############################################################
17 --echo # 1. Run a transaction with 5 events: GTID, Begin, Table_map, Write_rows, Commit.
18 --echo # When compressed it will only have 2 events: GTID, Transaction_Payload
19 CREATE TABLE t1 (c1 INT PRIMARY KEY);
20 INSERT INTO t1 VALUES(1);
21 DROP TABLE t1;
22
23 --echo
24 --echo ############################################################
25 --echo # 2. Assert that the transaction length is correct, with and without compression
26 --echo # (which will be enabled on the MTR collection).
27 --source include/assert_transaction_length.inc