MySQL 9.1.0
Source Code Documentation
recovery.cc File Reference

Namespaces

namespace  anonymous_namespace{recovery.cc}
 

Typedefs

using anonymous_namespace{recovery.cc}::recovery_statistics = std::pair< std::tuple< size_t, size_t, size_t >, std::tuple< size_t, size_t, size_t > >
 Pair of tuples used to store the information about success and failures of committing, rolling back or preparing transactions. More...
 

Functions

void anonymous_namespace{recovery.cc}::recover_one_internal_trx (xarecover_st const &info, handlerton &ht, XA_recover_txn const &xa_trx, my_xid xid, ::recovery_statistics &stats)
 Processes an internally coordinated transaction against the transaction coordinator internal state. More...
 
void anonymous_namespace{recovery.cc}::recover_one_external_trx (xarecover_st const &info, handlerton &ht, XA_recover_txn const &xa_trx, ::recovery_statistics &stats)
 Processes an externally coordinated transaction against the transaction coordinator internal state. More...
 
template<size_t state, size_t counter>
void anonymous_namespace{recovery.cc}::add_to_stats (::recovery_statistics &stats)
 Changes the given stats object by adding 1 to the given counter counter in the tuple state. More...
 
bool anonymous_namespace{recovery.cc}::has_failures (::recovery_statistics const &stats)
 Checks if there are any non-zero failure counters in the fiven statistics object. More...
 
std::string anonymous_namespace{recovery.cc}::print_stats (::recovery_statistics const &internal_stats, ::recovery_statistics const &external_stats)
 Composes a string presenting the statistics for the given objects. More...
 
bool anonymous_namespace{recovery.cc}::print_stat (::recovery_statistics const &stats, std::string const &trx_type, std::ostringstream &oss)
 Prints to the given string stream the textual representation of the statistics stored in the given object. More...
 
template<typename ID >
void anonymous_namespace{recovery.cc}::report_trx_recovery_error (int error, ID const &id, handlerton const &ht, enum xa_status_code failure_code, bool is_xa=false)
 Logs a message to the error log about failure to commit, rollback or prepare a transaction. More...
 
enum xa_status_code anonymous_namespace{recovery.cc}::generate_xa_recovery_error ()
 Returns an XA status code according to active debug symbols. More...
 

Variables

constexpr size_t anonymous_namespace{recovery.cc}::STATS_FAILURE = 0
 
constexpr size_t anonymous_namespace{recovery.cc}::STATS_SUCCESS = 1
 
constexpr size_t anonymous_namespace{recovery.cc}::STATS_COMMITTED = 0
 
constexpr size_t anonymous_namespace{recovery.cc}::STATS_ROLLEDBACK = 1
 
constexpr size_t anonymous_namespace{recovery.cc}::STATS_PREPARED = 2