MySQL 5.6.14 Source Code Document
|
#include "trx0rseg.h"
#include "trx0undo.h"
#include "fut0lst.h"
#include "srv0srv.h"
#include "trx0purge.h"
#include "ut0bh.h"
#include "srv0mon.h"
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_t * | trx_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) |
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.
sys_header | in/out: trx system header |
ib_bh | in: rseg queue |
mtr | in: mtr |
Definition at line 350 of file trx0rseg.cc.
UNIV_INTERN trx_rseg_t* trx_rseg_create | ( | ulint | space | ) |
in: id of UNDO tablespace
space | in: id of UNDO tablespace |
Definition at line 301 of file trx0rseg.cc.
UNIV_INTERN ulint trx_rseg_get_n_undo_tablespaces | ( | ulint * | space_ids | ) |
out: array of space ids of UNDO tablespaces
space_ids | out: array of space ids of UNDO tablespaces |
Definition at line 369 of file trx0rseg.cc.
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.
space | in: space id |
zip_size | in: compressed page size in bytes or 0 for uncompressed pages |
max_size | in: max size in pages |
rseg_slot_no | in: rseg id == slot number in trx sys |
mtr | in: mtr |
Definition at line 50 of file trx0rseg.cc.
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.