MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trx0roll.cc File Reference
#include "trx0roll.h"
#include "fsp0fsp.h"
#include "mach0data.h"
#include "trx0rseg.h"
#include "trx0trx.h"
#include "trx0undo.h"
#include "trx0rec.h"
#include "que0que.h"
#include "usr0sess.h"
#include "srv0start.h"
#include "read0read.h"
#include "row0undo.h"
#include "row0mysql.h"
#include "lock0lock.h"
#include "pars0pars.h"
#include "srv0mon.h"
#include "trx0sys.h"
Include dependency graph for trx0roll.cc:

Go to the source code of this file.

Macros

#define TRX_ROLL_TRUNC_THRESHOLD   1

Functions

UNIV_INTERN dberr_t trx_rollback_to_savepoint (trx_t *trx, trx_savept_t *savept)
UNIV_INTERN dberr_t trx_rollback_for_mysql (trx_t *trx)
UNIV_INTERN dberr_t trx_rollback_last_sql_stat_for_mysql (trx_t *trx)
UNIV_INTERN void trx_roll_savepoints_free (trx_t *trx, trx_named_savept_t *savep)

Variables

static trx_named_savept_tsavep

Detailed Description

Transaction rollback

Created 3/26/1996 Heikki Tuuri

Definition in file trx0roll.cc.

Macro Definition Documentation

#define TRX_ROLL_TRUNC_THRESHOLD   1
This many pages must be undone before a truncate is tried within

rollback

Definition at line 51 of file trx0roll.cc.

Function Documentation

UNIV_INTERN void trx_roll_savepoints_free ( trx_t trx,
trx_named_savept_t savep 
)

Frees savepoint structs starting from savep.

Parameters
trxin: transaction handle
savepin: free all savepoints starting with this savepoint i

Definition at line 321 of file trx0roll.cc.

UNIV_INTERN dberr_t trx_rollback_for_mysql ( trx_t trx)

Rollback a transaction used in MySQL.

Returns
error code or DB_SUCCESS
Parameters
trxin/out: transaction

Definition at line 197 of file trx0roll.cc.

Here is the caller graph for this function:

UNIV_INTERN dberr_t trx_rollback_last_sql_stat_for_mysql ( trx_t trx)

Rollback the latest SQL statement for MySQL.

Returns
error code or DB_SUCCESS
Parameters
trxin/out: transaction

Definition at line 234 of file trx0roll.cc.

Here is the call graph for this function:

UNIV_INTERN dberr_t trx_rollback_to_savepoint ( trx_t trx,
trx_savept_t savept 
)

Rollback a transaction to a given savepoint or do a complete rollback.

Returns
error code or DB_SUCCESS
Parameters
trxin: transaction handle
saveptin: pointer to savepoint undo number, if partial rollback requested, or NULL for complete rollback

Definition at line 137 of file trx0roll.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

< in/out: transaction in/out: savepoint

Definition at line 352 of file trx0roll.cc.