diff options
author | mkaruza <mario.karuza@galeracluster.com> | 2021-03-16 12:53:40 +0100 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2021-03-25 09:47:48 +0200 |
commit | db04f016249ae73d9d52d019b3be2a1ab026f450 (patch) | |
tree | c01e91041eb37c3846661f7e18d2ee06cadf7c26 /sql/sql_insert.cc | |
parent | 2eae1376fed1314eb1ccc8fb79157db9698f24d1 (diff) | |
download | mariadb-git-codership-10.4-MDEV-21697.tar.gz |
MDEV-21697: Galera assertion !wsrep_has_changes(thd) || (thd->lex->sql_command == SQLCOM_CREATE_TABLE && !thd->is_current_stmt_binlog_format_row())codership-10.4-MDEV-21697
Prevent adding WSREP keys with CTAS when table is is not InnoDB.
Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index a3211629180..c969725bea4 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -4724,7 +4724,8 @@ bool select_create::send_eof() if (!table->s->tmp_table) { #ifdef WITH_WSREP - if (WSREP(thd)) + if (WSREP(thd) && + table->file->ht->db_type == DB_TYPE_INNODB) { if (thd->wsrep_trx_id() == WSREP_UNDEFINED_TRX_ID) { |