MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TC_LOG_DUMMY Class Reference
Inheritance diagram for TC_LOG_DUMMY:
Collaboration diagram for TC_LOG_DUMMY:

Public Member Functions

int open (const char *opt_name)
void close ()
enum_result commit (THD *thd, bool all)
int rollback (THD *thd, bool all)
int prepare (THD *thd, bool all)
- Public Member Functions inherited from TC_LOG
int using_heuristic_recover ()

Additional Inherited Members

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

Detailed Description

Definition at line 108 of file log.h.

Member Function Documentation

enum_result TC_LOG_DUMMY::commit ( THD *  thd,
bool  all 
)
inlinevirtual

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.

Definition at line 114 of file log.h.

Here is the call graph for this function:

int TC_LOG_DUMMY::prepare ( THD *  thd,
bool  all 
)
inlinevirtual

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.

Definition at line 120 of file log.h.

int TC_LOG_DUMMY::rollback ( THD *  thd,
bool  all 
)
inlinevirtual

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.

Definition at line 117 of file log.h.


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