InnoDB Plugin  1.0
Functions
trx0rseg.ic File Reference
#include "srv0srv.h"
#include "mtr0log.h"
#include "trx0sys.h"
Include dependency graph for trx0rseg.ic:
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE trx_rsegf_ttrx_rsegf_get (ulint space, ulint zip_size, ulint page_no, mtr_t *mtr)
UNIV_INLINE trx_rsegf_ttrx_rsegf_get_new (ulint space, ulint zip_size, ulint page_no, mtr_t *mtr)
UNIV_INLINE ulint trx_rsegf_get_nth_undo (trx_rsegf_t *rsegf, ulint n, mtr_t *mtr)
UNIV_INLINE void trx_rsegf_set_nth_undo (trx_rsegf_t *rsegf, ulint n, ulint page_no, mtr_t *mtr)
UNIV_INLINE ulint trx_rsegf_undo_find_free (trx_rsegf_t *rsegf, mtr_t *mtr)
UNIV_INLINE trx_rseg_ttrx_rseg_get_on_id (ulint id)

Detailed Description

Rollback segment

Created 3/26/1996 Heikki Tuuri

Function Documentation

UNIV_INLINE trx_rseg_t* trx_rseg_get_on_id ( ulint  id)

Looks for a rollback segment, based on the rollback segment id.

Returns
rollback segment
Parameters
idin: rollback segment id
UNIV_INLINE trx_rsegf_t* trx_rsegf_get ( ulint  space,
ulint  zip_size,
ulint  page_no,
mtr_t mtr 
)

Gets a rollback segment header.

Returns
rollback segment header, page x-latched
Parameters
spacein: space where placed
zip_sizein: compressed page size in bytes or 0 for uncompressed pages
page_noin: page number of the header
mtrin: mtr
UNIV_INLINE trx_rsegf_t* trx_rsegf_get_new ( ulint  space,
ulint  zip_size,
ulint  page_no,
mtr_t mtr 
)

Gets a newly created rollback segment header.

Returns
rollback segment header, page x-latched
Parameters
spacein: space where placed
zip_sizein: compressed page size in bytes or 0 for uncompressed pages
page_noin: page number of the header
mtrin: mtr
UNIV_INLINE ulint trx_rsegf_get_nth_undo ( trx_rsegf_t rsegf,
ulint  n,
mtr_t mtr 
)

Gets the file page number of the nth undo log slot.

Returns
page number of the undo log segment
Parameters
rsegfin: rollback segment header
nin: index of slot
mtrin: mtr
UNIV_INLINE void trx_rsegf_set_nth_undo ( trx_rsegf_t rsegf,
ulint  n,
ulint  page_no,
mtr_t mtr 
)

Sets the file page number of the nth undo log slot.

Parameters
rsegfin: rollback segment header
nin: index of slot
page_noin: page number of the undo log segment
mtrin: mtr
UNIV_INLINE ulint trx_rsegf_undo_find_free ( trx_rsegf_t rsegf,
mtr_t mtr 
)

Looks for a free slot for an undo log segment.

Returns
slot index or ULINT_UNDEFINED if not found
Parameters
rsegfin: rollback segment header
mtrin: mtr