MySQL 8.4.2
Source Code Documentation
|
Functions | |
int | process_xa_prepare (THD *thd) |
The main processing function for XA PREPARE : More... | |
bool | detach_xa_transaction (THD *thd) |
Detaches the active XA transaction from the current THD session. More... | |
bool | detach_native_trx_one_ht (THD *thd, handlerton *hton) |
Detaches the transaction held by the THD session object from the storage engine represented by hton . More... | |
void | reset_xa_connection (THD *thd) |
Reset the THD session object after XA transaction is detached, in order to make it usable for "new" work, normal statements or a new XA transaction. More... | |
bool anonymous_namespace{sql_xa_prepare.cc}::detach_native_trx_one_ht | ( | THD * | thd, |
handlerton * | hton | ||
) |
Detaches the transaction held by the THD session object from the storage engine represented by hton
.
This the same action which is performed by SE when disconnecting a connection which has a prepared XA transaction, when xa_detach_on_prepare is OFF.
thd | The THD session object holding the transaction to be detached. |
hton | The handlerton object representing the SE for which the transaction must be detached. |
bool anonymous_namespace{sql_xa_prepare.cc}::detach_xa_transaction | ( | THD * | thd | ) |
Detaches the active XA transaction from the current THD session.
Executes the following actions:
thd | The THD session object holding the transaction to be detached. |
int anonymous_namespace{sql_xa_prepare.cc}::process_xa_prepare | ( | THD * | thd | ) |
The main processing function for XA PREPARE
:
XA PREPARE
associated event to the current binlog.thd | The THD session object within which the command is being executed. |
void anonymous_namespace{sql_xa_prepare.cc}::reset_xa_connection | ( | THD * | thd | ) |
Reset the THD session object after XA transaction is detached, in order to make it usable for "new" work, normal statements or a new XA transaction.
thd | The THD session object to be reset and cleaned up. |