MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trx0purge.cc File Reference
#include "trx0purge.h"
#include "fsp0fsp.h"
#include "mach0data.h"
#include "trx0rseg.h"
#include "trx0trx.h"
#include "trx0roll.h"
#include "read0read.h"
#include "fut0fut.h"
#include "que0que.h"
#include "row0purge.h"
#include "row0upd.h"
#include "trx0rec.h"
#include "srv0srv.h"
#include "srv0start.h"
#include "os0thread.h"
#include "srv0mon.h"
#include "mtr0log.h"
Include dependency graph for trx0purge.cc:

Go to the source code of this file.

Functions

UNIV_INTERN void trx_purge_sys_create (ulint n_purge_threads, ib_bh_t *ib_bh)
UNIV_INTERN void trx_purge_sys_close (void)
UNIV_INTERN void trx_purge_add_update_undo_to_history (trx_t *trx, page_t *undo_page, mtr_t *mtr)

Variables

UNIV_INTERN ulong srv_max_purge_lag = 0
UNIV_INTERN ulong srv_max_purge_lag_delay = 0
UNIV_INTERN trx_purge_tpurge_sys = NULL
UNIV_INTERN trx_undo_rec_t trx_purge_dummy_rec
static ulint * n_pages_handled

Detailed Description

Purge old versions

Created 3/26/1996 Heikki Tuuri

Definition in file trx0purge.cc.

Function Documentation

UNIV_INTERN void trx_purge_add_update_undo_to_history ( trx_t trx,
page_t undo_page,
mtr_t mtr 
)

Adds the update undo log as the first log in the history list. Removes the update undo log segment from the rseg slot if it is too big for reuse.

Parameters
trxin: transaction
undo_pagein: update undo log header page, x-latched
mtrin: mtr

Definition at line 201 of file trx0purge.cc.

Here is the call graph for this function:

UNIV_INTERN void trx_purge_sys_close ( void  )

Frees the global purge system control structure.

Definition at line 162 of file trx0purge.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void trx_purge_sys_create ( ulint  n_purge_threads,
ib_bh_t ib_bh 
)

Creates the global purge system control structure and inits the history mutex.

Parameters
n_purge_threadsin: number of purge threads
ib_bhin, own: UNDO log min binary heap

Definition at line 112 of file trx0purge.cc.

Here is the call graph for this function:

Variable Documentation

ulint* n_pages_handled

< out: roll pointer to undo record in/out: number of UNDO log pages handled

Definition at line 922 of file trx0purge.cc.

UNIV_INTERN trx_purge_t* purge_sys = NULL

The global data structure coordinating a purge

Definition at line 56 of file trx0purge.cc.

UNIV_INTERN ulong srv_max_purge_lag = 0

Maximum allowable purge history length. <=0 means 'infinite'.

Definition at line 50 of file trx0purge.cc.

UNIV_INTERN ulong srv_max_purge_lag_delay = 0

Max DML user threads delay in micro-seconds.

Definition at line 53 of file trx0purge.cc.

UNIV_INTERN trx_undo_rec_t trx_purge_dummy_rec
A dummy undo record used as a return value when we have a whole undo log

which needs no purge

Definition at line 60 of file trx0purge.cc.