Skip to content

Commit 198a4fe

Browse files
committed
MDEV-22729: Additional fix for branch 10.5
1 parent 0c0f9de commit 198a4fe

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!include ../galera_2nodes_as_slave.cnf

mysql-test/suite/galera/t/galera_slave_replay.test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#
88

99
--source include/have_innodb.inc
10+
--source include/have_log_bin.inc
1011
--source include/have_debug.inc
1112
--source include/have_debug_sync.inc
1213
--source include/galera_have_debug_sync.inc
@@ -31,10 +32,10 @@ RESET MASTER;
3132

3233

3334
#
34-
# nodes 1 and 2 form a galera cluster, node 2 operates as slave for native MariaDB naster in node 3
35+
# nodes 1 and 2 form a galera cluster, node 2 operates as slave for native MariaDB master in node 3
3536
#
3637
--disable_query_log
37-
--eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_PORT=$NODE_MYPORT_3;
38+
--eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_PORT=$NODE_MYPORT_3;
3839
--enable_query_log
3940
START SLAVE;
4041

sql/service_wsrep.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ extern "C" void wsrep_commit_ordered(THD *thd)
313313
{
314314
thd->wsrep_last_written_gtid_seqno= thd->wsrep_current_gtid_seqno;
315315
}
316-
if (!wsrep_commit_will_write_binlog(thd))
316+
if (thd->wsrep_trx().state() != wsrep::transaction::s_ordered_commit &&
317+
!wsrep_commit_will_write_binlog(thd))
317318
{
318319
DEBUG_SYNC(thd, "before_wsrep_ordered_commit");
319320
thd->wsrep_cs().ordered_commit();

0 commit comments

Comments
 (0)