MySQL 5.6.14 Source Code Document
|
#include "trx0trx.h"
#include "trx0undo.h"
#include "trx0rseg.h"
#include "log0log.h"
#include "que0que.h"
#include "lock0lock.h"
#include "trx0roll.h"
#include "usr0sess.h"
#include "read0read.h"
#include "srv0srv.h"
#include "srv0start.h"
#include "btr0sea.h"
#include "os0proc.h"
#include "trx0xa.h"
#include "trx0rec.h"
#include "trx0purge.h"
#include "ha_prototypes.h"
#include "srv0mon.h"
#include "ut0vec.h"
#include <set>
Go to the source code of this file.
Typedefs | |
typedef std::set< table_id_t > | table_id_set |
Functions | |
UNIV_INTERN void | trx_set_detailed_error (trx_t *trx, const char *msg) |
UNIV_INTERN void | trx_set_detailed_error_from_file (trx_t *trx, FILE *file) |
UNIV_INTERN trx_t * | trx_allocate_for_background (void) |
UNIV_INTERN trx_t * | trx_allocate_for_mysql (void) |
UNIV_INTERN void | trx_free_for_background (trx_t *trx) |
UNIV_INTERN void | trx_free_prepared (trx_t *trx) |
UNIV_INTERN void | trx_free_for_mysql (trx_t *trx) |
UNIV_INTERN void | trx_lists_init_at_db_start (void) |
UNIV_INTERN void | trx_assign_rseg (trx_t *trx) |
Variables | |
UNIV_INTERN sess_t * | trx_dummy_sess = NULL |
typedef std::set<table_id_t> table_id_set |
Set of table_id
Definition at line 54 of file trx0trx.cc.
UNIV_INTERN trx_t* trx_allocate_for_background | ( | void | ) |
Creates a transaction object for background operations by the master thread.
Definition at line 163 of file trx0trx.cc.
UNIV_INTERN trx_t* trx_allocate_for_mysql | ( | void | ) |
Creates a transaction object for MySQL.
Definition at line 180 of file trx0trx.cc.
UNIV_INTERN void trx_assign_rseg | ( | trx_t * | trx | ) |
Assign a read-only transaction a rollback-segment, if it is attempting to write to a TEMPORARY table.
trx | A read-only transaction that needs to be assigned a RBS. |
Definition at line 780 of file trx0trx.cc.
UNIV_INTERN void trx_free_for_background | ( | trx_t * | trx | ) |
Frees a transaction object of a background operation of the master thread.
trx | in, own: trx object |
Definition at line 251 of file trx0trx.cc.
UNIV_INTERN void trx_free_for_mysql | ( | trx_t * | trx | ) |
Frees a transaction object for MySQL.
trx | in, own: trx object |
Definition at line 324 of file trx0trx.cc.
UNIV_INTERN void trx_free_prepared | ( | trx_t * | trx | ) |
At shutdown, frees a transaction object that is in the PREPARED state.
trx | in, own: trx object |
Definition at line 296 of file trx0trx.cc.
UNIV_INTERN void trx_lists_init_at_db_start | ( | void | ) |
Creates trx objects for transactions and initializes the trx list of trx_sys at database start. Rollback segment and undo log lists must already exist when this function is called, because the lists of transactions to be rolled back or cleaned up are built based on the undo log lists.
Definition at line 659 of file trx0trx.cc.
UNIV_INTERN void trx_set_detailed_error | ( | trx_t * | trx, |
const char * | msg | ||
) |
Set detailed error message for the transaction.
trx | in: transaction struct |
msg | in: detailed error message |
Definition at line 70 of file trx0trx.cc.
UNIV_INTERN void trx_set_detailed_error_from_file | ( | trx_t * | trx, |
FILE * | file | ||
) |
Set detailed error message for the transaction from a file. Note that the file is rewinded before reading from it.
trx | in: transaction struct |
file | in: file to read message from |
Definition at line 83 of file trx0trx.cc.
UNIV_INTERN sess_t* trx_dummy_sess = NULL |
Dummy session used currently in MySQL interface
Definition at line 57 of file trx0trx.cc.