|
MySQL 5.6.14 Source Code Document
|
#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"
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_t * | savep |
| #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.
| UNIV_INTERN void trx_roll_savepoints_free | ( | trx_t * | trx, |
| trx_named_savept_t * | savep | ||
| ) |
Frees savepoint structs starting from savep.
| trx | in: transaction handle |
| savep | in: free all savepoints starting with this savepoint i |
Definition at line 321 of file trx0roll.cc.
Rollback a transaction used in MySQL.
| trx | in/out: transaction |
Definition at line 197 of file trx0roll.cc.

Rollback the latest SQL statement for MySQL.
| trx | in/out: transaction |
Definition at line 234 of file trx0roll.cc.

| 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.
| trx | in: transaction handle |
| savept | in: pointer to savepoint undo number, if partial rollback requested, or NULL for complete rollback |
Definition at line 137 of file trx0roll.cc.


| trx_named_savept_t* savep |
< in/out: transaction in/out: savepoint
Definition at line 352 of file trx0roll.cc.