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 11:14:50 +0200 |
commit | d1ff2c583f452d8e1899f800609c329c998f0a33 (patch) | |
tree | bb9fbe8c4efbe13780c63c857c926a0c1bd7df9b /sql/sql_insert.cc | |
parent | 161f4036c4c641635cba9772141e61beab20c9db (diff) | |
download | mariadb-git-bb-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())bb-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) { |