mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Don't crash if creating sequence under XA
MDEV-22002 Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon CREATE TEMPORARY SEQUENCE under XA
This commit is contained in:
@ -355,8 +355,10 @@ bool sequence_insert(THD *thd, LEX *lex, TABLE_LIST *org_table_list)
|
||||
seq->reserved_until= seq->start;
|
||||
error= seq->write_initial_sequence(table);
|
||||
|
||||
trans_commit_stmt(thd);
|
||||
trans_commit_implicit(thd);
|
||||
if (trans_commit_stmt(thd))
|
||||
error= 1;
|
||||
if (trans_commit_implicit(thd))
|
||||
error= 1;
|
||||
|
||||
if (!temporary_table)
|
||||
{
|
||||
|
Reference in New Issue
Block a user