MySQL 8.3.0
Source Code Documentation
TC_LOG_DUMMY Class Reference

#include <tc_log.h>

Inheritance diagram for TC_LOG_DUMMY:
[legend]

Public Member Functions

 TC_LOG_DUMMY ()=default
 
int open (const char *) override
 Initialize and open the coordinator log. More...
 
void close () override
 Close the transaction coordinator log and free any resources. More...
 
enum_result commit (THD *thd, bool all) override
 Log a commit record of the transaction to the transaction coordinator log. More...
 
int rollback (THD *thd, bool all) override
 Log a rollback record of the transaction to the transaction coordinator log. More...
 
int prepare (THD *thd, bool all) override
 Log a prepare record of the transaction to the storage engines. More...
 
- Public Member Functions inherited from TC_LOG
bool using_heuristic_recover ()
 Perform heuristic recovery, if –tc-heuristic-recover was used. More...
 
 TC_LOG ()=default
 
virtual ~TC_LOG ()=default
 

Additional Inherited Members

- Public Types inherited from TC_LOG
enum  enum_result { RESULT_SUCCESS , RESULT_ABORTED , RESULT_INCONSISTENT }
 

Constructor & Destructor Documentation

◆ TC_LOG_DUMMY()

TC_LOG_DUMMY::TC_LOG_DUMMY ( )
default

Member Function Documentation

◆ close()

void TC_LOG_DUMMY::close ( )
inlineoverridevirtual

Close the transaction coordinator log and free any resources.

Called during server shutdown.

Implements TC_LOG.

◆ commit()

TC_LOG::enum_result TC_LOG_DUMMY::commit ( THD thd,
bool  all 
)
overridevirtual

Log a commit record of the transaction to the transaction coordinator log.

When the function returns, the transaction commit is properly logged to the transaction coordinator log and can be committed in the storage engines.

Parameters
thdSession to log transaction for.
allTrue if this is a "real" commit, false if it is a "statement" commit.
Returns
Error code on failure, zero on success.

Implements TC_LOG.

◆ open()

int TC_LOG_DUMMY::open ( const char *  opt_name)
overridevirtual

Initialize and open the coordinator log.

Do recovery if necessary. Called during server startup.

Parameters
opt_nameName of logfile.
Return values
0success
1failed

Implements TC_LOG.

◆ prepare()

int TC_LOG_DUMMY::prepare ( THD thd,
bool  all 
)
overridevirtual

Log a prepare record of the transaction to the storage engines.

Parameters
thdSession to log transaction record for.
alltrue if an explicit commit or an implicit commit for a statement, false if an internal commit of the statement.
Returns
Error code on failure, zero on success.

Implements TC_LOG.

◆ rollback()

int TC_LOG_DUMMY::rollback ( THD thd,
bool  all 
)
overridevirtual

Log a rollback record of the transaction to the transaction coordinator log.

When the function returns, the transaction have been aborted in the transaction coordinator log.

Parameters
thdSession to log transaction record for.
alltrue if an explicit commit or an implicit commit for a statement, false if an internal commit of the statement.
Returns
Error code on failure, zero on success.

Implements TC_LOG.


The documentation for this class was generated from the following files: