################################################################################ # Validate that logged transactions have the correct transaction length on the # GTID event. # # Test: # 0. The test requires one server: M1, with binary log in row format. # 1. Run a transaction with 5 events: GTID, Begin, Table_map, Write_rows, Commit. # When compressed it will only have 2 events: GTID, Transaction_Payload # 2. Assert that the transaction length is correct, with and without compression # (which will be enabled on the MTR collection). ################################################################################ --source include/have_binlog_format_row.inc RESET MASTER; --echo --echo ############################################################ --echo # 1. Run a transaction with 5 events: GTID, Begin, Table_map, Write_rows, Commit. --echo # When compressed it will only have 2 events: GTID, Transaction_Payload CREATE TABLE t1 (c1 INT PRIMARY KEY); INSERT INTO t1 VALUES(1); DROP TABLE t1; --echo --echo ############################################################ --echo # 2. Assert that the transaction length is correct, with and without compression --echo # (which will be enabled on the MTR collection). --source include/assert_transaction_length.inc