Commit 198a4fee authored by Julius Goryavsky's avatar Julius Goryavsky

MDEV-22729: Additional fix for branch 10.5

parent 0c0f9de4
!include ../galera_2nodes_as_slave.cnf
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
# #
--source include/have_innodb.inc --source include/have_innodb.inc
--source include/have_log_bin.inc
--source include/have_debug.inc --source include/have_debug.inc
--source include/have_debug_sync.inc --source include/have_debug_sync.inc
--source include/galera_have_debug_sync.inc --source include/galera_have_debug_sync.inc
...@@ -31,10 +32,10 @@ RESET MASTER; ...@@ -31,10 +32,10 @@ RESET MASTER;
# #
# nodes 1 and 2 form a galera cluster, node 2 operates as slave for native MariaDB naster in node 3 # nodes 1 and 2 form a galera cluster, node 2 operates as slave for native MariaDB master in node 3
# #
--disable_query_log --disable_query_log
--eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_PORT=$NODE_MYPORT_3; --eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_PORT=$NODE_MYPORT_3;
--enable_query_log --enable_query_log
START SLAVE; START SLAVE;
......
...@@ -313,7 +313,8 @@ extern "C" void wsrep_commit_ordered(THD *thd) ...@@ -313,7 +313,8 @@ extern "C" void wsrep_commit_ordered(THD *thd)
{ {
thd->wsrep_last_written_gtid_seqno= thd->wsrep_current_gtid_seqno; thd->wsrep_last_written_gtid_seqno= thd->wsrep_current_gtid_seqno;
} }
if (!wsrep_commit_will_write_binlog(thd)) if (thd->wsrep_trx().state() != wsrep::transaction::s_ordered_commit &&
!wsrep_commit_will_write_binlog(thd))
{ {
DEBUG_SYNC(thd, "before_wsrep_ordered_commit"); DEBUG_SYNC(thd, "before_wsrep_ordered_commit");
thd->wsrep_cs().ordered_commit(); thd->wsrep_cs().ordered_commit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment