From 430b972702542f128c1b50aea02e8e810f98048c Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Wed, 3 May 2023 07:45:15 +0200 Subject: [PATCH] Protect a new condition (by Andrei) --- sql/log_event.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sql/log_event.cc b/sql/log_event.cc index db682bd0835..42d15ea1810 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -13766,7 +13766,11 @@ int Rows_log_event::update_sequence() int err= 0; if (!bitmap_is_set(table->rpl_write_set, MIN_VALUE_FIELD_NO) || - (!(table->in_use->rgi_slave->gtid_ev_flags2 & Gtid_log_event::FL_DDL) && + ( +#if defined(WITH_WSREP) + ! WSREP(thd) && +#endif + !(table->in_use->rgi_slave->gtid_ev_flags2 & Gtid_log_event::FL_DDL) && !(old_master= rpl_master_has_bug(thd->rgi_slave->rli, 29621, FALSE, FALSE, FALSE, TRUE))))