1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-15217 Assertion `thd->transaction.xid_state.xid.is_null()' failed

in trans_xa_start.

        THD.transaction.xid_state.xid.rm_error should be cleaned
        as the thread ends.
This commit is contained in:
Alexey Botchkov
2018-03-12 08:30:08 +04:00
parent 28777046b4
commit cd109592ca
3 changed files with 59 additions and 1 deletions

View File

@ -1462,6 +1462,7 @@ void THD::cleanup(void)
close_temporary_tables();
transaction.xid_state.xa_state= XA_NOTR;
transaction.xid_state.rm_error= 0;
trans_rollback(this);
xid_cache_delete(this, &transaction.xid_state);