Skip to content

Commit e5149fa

Browse files
committed
Fix that gap locks are only skipped within one group commit.
1 parent bd4153a commit e5149fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/sql_class.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4277,6 +4277,8 @@ thd_need_ordering_with(const MYSQL_THD thd, const MYSQL_THD other_thd)
42774277
return 1;
42784278
if (rgi->current_gtid.domain_id != other_rgi->current_gtid.domain_id)
42794279
return 1;
4280+
if (rgi->commit_id != other_rgi->commit_id)
4281+
return 1;
42804282
/*
42814283
These two threads are doing parallel replication within the same
42824284
replication domain. Their commit order is already fixed, so we do not need

0 commit comments

Comments
 (0)