From 03f3ba2dcb07a672f9c1d87489b9ec88af62a96f Mon Sep 17 00:00:00 2001 From: mkaruza Date: Tue, 18 Jun 2019 11:29:54 +0200 Subject: [PATCH] MDEV-18940 Galera: Rolling upgrade: all nodes except upgraded node5 failed with Assertion `meta->gtid.seqno == wsrep_thd_trx_seqno(thd)' with SEQUENCEs (#1342) Empty write sets will not trigger apply callback, and will not update thread wsrep_trx_meta.gtid.seqno. Because of that assert will be triggered when commit callback is called. --- sql/wsrep_applier.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/wsrep_applier.cc b/sql/wsrep_applier.cc index 9d39b36793f..0322c5f6a40 100644 --- a/sql/wsrep_applier.cc +++ b/sql/wsrep_applier.cc @@ -360,7 +360,7 @@ wsrep_cb_status_t wsrep_commit_cb(void* const ctx, { THD* const thd((THD*)ctx); - assert(meta->gtid.seqno == wsrep_thd_trx_seqno(thd)); + assert(meta->gtid.seqno >= wsrep_thd_trx_seqno(thd)); wsrep_cb_status_t rcode;