summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorAndrei <andrei.elkin@mariadb.com>2022-04-26 17:03:32 +0300
committerAndrei <andrei.elkin@mariadb.com>2022-04-26 17:05:40 +0300
commit945245aea4baf5399470ec0cff5d5d51c36a95d6 (patch)
tree79f47654f84ca6974c77b622cedc3b7226e584c9 /sql/slave.cc
parent5100b20b15edd93200f34a79d25f1b14e46a677e (diff)
downloadmariadb-git-945245aea4baf5399470ec0cff5d5d51c36a95d6.tar.gz
MDEV-27697. Two affected tests fixed.
A result file is updated in one case and former error simulation got refined.
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 31e50753c9e..0d50e8b0c61 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -6223,8 +6223,10 @@ static int queue_event(Master_info* mi,const char* buf, ulong event_len)
DBUG_EXECUTE_IF("slave_discard_xid_for_gtid_0_x_1000",
{
/* Inject an event group that is missing its XID commit event. */
- if (mi->last_queued_gtid.domain_id == 0 &&
- mi->last_queued_gtid.seq_no == 1000)
+ if ((mi->last_queued_gtid.domain_id == 0 &&
+ mi->last_queued_gtid.seq_no == 1000) ||
+ (mi->last_queued_gtid.domain_id == 1 &&
+ mi->last_queued_gtid.seq_no == 32))
{
sql_print_warning(
"Unexpected break of being relay-logged GTID %u-%u-%llu "