1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

trans_xa_detach() framework

Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
This commit is contained in:
Sergey Vojtovich
2019-04-22 00:04:14 +04:00
parent 210855ce5d
commit 1599825ffc
3 changed files with 54 additions and 21 deletions

View File

@ -1525,8 +1525,10 @@ void THD::cleanup(void)
delete_dynamic(&user_var_events);
close_temporary_tables();
xid_cache_delete(this, &transaction.xid_state);
trans_rollback(this);
if (transaction.xid_state.is_explicit_XA())
trans_xa_detach(this);
else
trans_rollback(this);
DBUG_ASSERT(open_tables == NULL);
/*