MySQL 9.0.0
Source Code Documentation
xa::recovery Namespace Reference

Functions

bool recover_prepared_in_tc_one_ht (THD *thd, plugin_ref plugin, void *arg)
 Callback to be invoked by ha_recover over each storage engine plugin. More...
 
bool recover_one_ht (THD *thd, plugin_ref plugin, void *arg)
 Callback to be invoked by ha_recover over each storage engine plugin. More...
 

Function Documentation

◆ recover_one_ht()

bool xa::recovery::recover_one_ht ( THD thd,
plugin_ref  plugin,
void *  arg 
)

Callback to be invoked by ha_recover over each storage engine plugin.

  1. It invokes handler::recover(XA_recover_txn[]) callback from the plugin interface, in order to retrieve the list of transactions that are, at the moment, in prepared state within the storage engine.
  2. Invokes recover_one_internal_trx for all the retrieved transactions that are internally coordinated transactions.
  3. Invokes recover_one_external_trx for all the retrieved transactions that are externally coordinated transactions.
Parameters
thdThe THD session object to be used in recovering the transactions.
pluginThe plugin interface for the storage engine to recover the transactions for.
argA pointer to struct xarecover_st that hold the information about the transaction coordinator state.
Returns
false if the recovery ended successfully, false otherwise.

◆ recover_prepared_in_tc_one_ht()

bool xa::recovery::recover_prepared_in_tc_one_ht ( THD thd,
plugin_ref  plugin,
void *  arg 
)

Callback to be invoked by ha_recover over each storage engine plugin.

  1. It invokes handler::recover_prepared_in_tc(XA_recover_txn[]) callback from the plugin interface, in order to retrieve the list of transactions that are, at the moment, in prepared in TC state within the storage engine.
  2. For all externally coordinated transactions that are in prepared in TC state, adds each to the list of recoverable XA transactions xarecover_st::xa_list in PREPARED state.
Parameters
thdThe THD session object to be used in recovering the transactions.
pluginThe plugin interface for the storage engine to recover the transactions for.
argA pointer to struct xarecover_st that hold the information about the transaction coordinator state.
Returns
false if the recovery ended successfully, false otherwise.