summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2022-01-09 09:37:44 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2022-01-11 09:43:59 +0200
commita38b937bf12ab7e39eeda6e6d4da1b426302dc70 (patch)
treec5ce87dc0e285ec2dfd2fa7550c9b5daa2a86b12 /sql
parente32c21cb93617e082c4669701237199b8718155f (diff)
downloadmariadb-git-a38b937bf12ab7e39eeda6e6d4da1b426302dc70.tar.gz
MDEV-25201 : Assertion `thd->wsrep_trx_meta.gtid.seqno == (-1)' failed in int wsrep_to_isolation_begin(THD*, const char*, const char*, const TABLE_LIST*, Alter_info*)bb-10.2-galera-jan
Test case does not assert anymore but works incorrectly. We should not replicate PREPARE using TOI.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_base.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 5345fdbecd0..248dedf36e4 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -4227,6 +4227,7 @@ restart:
wsrep_thd_exec_mode(thd) == LOCAL_STATE &&
!is_stat_table((*start)->db, (*start)->alias) &&
thd->get_command() != COM_STMT_PREPARE &&
+ !thd->stmt_arena->is_stmt_prepare() &&
((thd->lex->sql_command == SQLCOM_INSERT ||
thd->lex->sql_command == SQLCOM_INSERT_SELECT ||
thd->lex->sql_command == SQLCOM_REPLACE ||