Skip to content

Commit 2b761ff

Browse files
author
Andrei Elkin
committed
Bug #41383 Test commit1_innodb fails with binlog-format=row
The test explicitly warned on existence of a bug in its 27th part. The expected values of prepare and commit counters changed, corrected, by fixes to bug#40221. Notice, that binlog does not have to register for a statement with the statement binlog-format because the statement rollback does not need to do anything in that mode. It's not so with the ROW format which was bug#40221 concern. Fixed with correcting the expected values of the mentioned counters and explained that with comments in the test.
1 parent 09219a0 commit 2b761ff

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

mysql-test/include/commit.inc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,11 @@ call p_verify_status_increment(2, 2, 2, 2);
671671
savepoint a;
672672
call p_verify_status_increment(0, 0, 0, 0);
673673
insert t1 set a=4;
674-
--echo # Sic: a bug. Binlog did not register itself this time.
675-
call p_verify_status_increment(1, 0, 1, 0);
674+
--echo # Binlog does not register itself this time for other than the 1st
675+
--echo # statement of the transaction with MIXED/STATEMENT binlog_format.
676+
--echo # It needs registering with the ROW format. Therefore 1,0,2,2 are
677+
--echo # the correct arguments to this test after bug#40221 fixed.
678+
call p_verify_status_increment(1, 0, 2, 2);
676679
release savepoint a;
677680
rollback;
678681
call p_verify_status_increment(0, 0, 0, 0);

mysql-test/r/commit_1innodb.result

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,11 @@ call p_verify_status_increment(0, 0, 0, 0);
770770
SUCCESS
771771

772772
insert t1 set a=4;
773-
# Sic: a bug. Binlog did not register itself this time.
774-
call p_verify_status_increment(1, 0, 1, 0);
773+
# Binlog does not register itself this time for other than the 1st
774+
# statement of the transaction with MIXED/STATEMENT binlog_format.
775+
# It needs registering with the ROW format. Therefore 1,0,2,2 are
776+
# the correct arguments to this test after bug#40221 fixed.
777+
call p_verify_status_increment(1, 0, 2, 2);
775778
SUCCESS
776779

777780
release savepoint a;

0 commit comments

Comments
 (0)