MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trx0rseg.cc File Reference
#include "trx0rseg.h"
#include "trx0undo.h"
#include "fut0lst.h"
#include "srv0srv.h"
#include "trx0purge.h"
#include "ut0bh.h"
#include "srv0mon.h"
Include dependency graph for trx0rseg.cc:

Go to the source code of this file.

Functions

UNIV_INTERN ulint trx_rseg_header_create (ulint space, ulint zip_size, ulint max_size, ulint rseg_slot_no, mtr_t *mtr)
UNIV_INTERN void trx_rseg_mem_free (trx_rseg_t *rseg)
UNIV_INTERN trx_rseg_ttrx_rseg_create (ulint space)
UNIV_INTERN void trx_rseg_array_init (trx_sysf_t *sys_header, ib_bh_t *ib_bh, mtr_t *mtr)
UNIV_INTERN ulint trx_rseg_get_n_undo_tablespaces (ulint *space_ids)

Detailed Description

Rollback segment

Created 3/26/1996 Heikki Tuuri

Definition in file trx0rseg.cc.

Function Documentation

UNIV_INTERN void trx_rseg_array_init ( trx_sysf_t sys_header,
ib_bh_t ib_bh,
mtr_t mtr 
)

Creates the memory copies for rollback segments and initializes the rseg array in trx_sys at a database startup.

Parameters
sys_headerin/out: trx system header
ib_bhin: rseg queue
mtrin: mtr

Definition at line 350 of file trx0rseg.cc.

Here is the caller graph for this function:

UNIV_INTERN trx_rseg_t* trx_rseg_create ( ulint  space)

in: id of UNDO tablespace

Parameters
spacein: id of UNDO tablespace

Definition at line 301 of file trx0rseg.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN ulint trx_rseg_get_n_undo_tablespaces ( ulint *  space_ids)

out: array of space ids of UNDO tablespaces

Parameters
space_idsout: array of space ids of UNDO tablespaces

Definition at line 369 of file trx0rseg.cc.

Here is the call graph for this function:

UNIV_INTERN ulint trx_rseg_header_create ( ulint  space,
ulint  zip_size,
ulint  max_size,
ulint  rseg_slot_no,
mtr_t mtr 
)

Creates a rollback segment header. This function is called only when a new rollback segment is created in the database.

Returns
page number of the created segment, FIL_NULL if fail
Parameters
spacein: space id
zip_sizein: compressed page size in bytes or 0 for uncompressed pages
max_sizein: max size in pages
rseg_slot_noin: rseg id == slot number in trx sys
mtrin: mtr

Definition at line 50 of file trx0rseg.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void trx_rseg_mem_free ( trx_rseg_t rseg)

Free's an instance of the rollback segment in memory.

Definition at line 115 of file trx0rseg.cc.

Here is the caller graph for this function: