MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trx0trx.cc File Reference
#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>
Include dependency graph for trx0trx.cc:

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_ttrx_allocate_for_background (void)
UNIV_INTERN trx_ttrx_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_ttrx_dummy_sess = NULL

Detailed Description

The transaction

Created 3/26/1996 Heikki Tuuri

Definition in file trx0trx.cc.

Typedef Documentation

typedef std::set<table_id_t> table_id_set

Set of table_id

Definition at line 54 of file trx0trx.cc.

Function Documentation

UNIV_INTERN trx_t* trx_allocate_for_background ( void  )

Creates a transaction object for background operations by the master thread.

Returns
own: transaction object

Definition at line 163 of file trx0trx.cc.

Here is the caller graph for this function:

UNIV_INTERN trx_t* trx_allocate_for_mysql ( void  )

Creates a transaction object for MySQL.

Returns
own: transaction object

Definition at line 180 of file trx0trx.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
trxA 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.

Parameters
trxin, own: trx object

Definition at line 251 of file trx0trx.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void trx_free_for_mysql ( trx_t trx)

Frees a transaction object for MySQL.

Parameters
trxin, own: trx object

Definition at line 324 of file trx0trx.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void trx_free_prepared ( trx_t trx)

At shutdown, frees a transaction object that is in the PREPARED state.

Parameters
trxin, own: trx object

Definition at line 296 of file trx0trx.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void trx_set_detailed_error ( trx_t trx,
const char *  msg 
)

Set detailed error message for the transaction.

Parameters
trxin: transaction struct
msgin: detailed error message

Definition at line 70 of file trx0trx.cc.

Here is the call graph for this function:

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.

Parameters
trxin: transaction struct
filein: file to read message from

Definition at line 83 of file trx0trx.cc.

Here is the call graph for this function:

Variable Documentation

UNIV_INTERN sess_t* trx_dummy_sess = NULL

Dummy session used currently in MySQL interface

Definition at line 57 of file trx0trx.cc.