MySQL 5.6.14 Source Code Document
|
#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"
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_t * | purge_sys = NULL |
UNIV_INTERN trx_undo_rec_t | trx_purge_dummy_rec |
static ulint * | n_pages_handled |
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.
trx | in: transaction |
undo_page | in: update undo log header page, x-latched |
mtr | in: mtr |
Definition at line 201 of file trx0purge.cc.
UNIV_INTERN void trx_purge_sys_close | ( | void | ) |
Frees the global purge system control structure.
Definition at line 162 of file trx0purge.cc.
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.
n_purge_threads | in: number of purge threads |
ib_bh | in, own: UNDO log min binary heap |
Definition at line 112 of file trx0purge.cc.
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.