InnoDB Plugin
1.0
|
#include "univ.i"
#include "data0data.h"
#include "btr0types.h"
#include "btr0pcur.h"
#include "dict0types.h"
#include "trx0types.h"
#include "que0types.h"
#include "row0types.h"
#include "row0purge.h"
#include "ut0vec.h"
#include "row0purge.ic"
Go to the source code of this file.
Data Structures | |
struct | purge_node_t |
Functions | |
UNIV_INTERN purge_node_t * | row_purge_node_create (que_thr_t *parent, mem_heap_t *heap)) |
UNIV_INTERN bool | row_purge_poss_sec (purge_node_t *node, dict_index_t *index, const dtuple_t *entry)) |
UNIV_INTERN que_thr_t * | row_purge_step (que_thr_t *thr)) |
Purge obsolete records
Created 3/14/1997 Heikki Tuuri
UNIV_INTERN purge_node_t* row_purge_node_create | ( | que_thr_t * | parent, |
mem_heap_t * | heap | ||
) |
Creates a purge node to a query graph.
parent | in: parent node, i.e., a thr node |
heap | in: memory heap where created |
UNIV_INTERN bool row_purge_poss_sec | ( | purge_node_t * | node, |
dict_index_t * | index, | ||
const dtuple_t * | entry | ||
) |
Determines if it is possible to remove a secondary index entry. Removal is possible if the secondary index entry does not refer to any not delete marked version of a clustered index record where DB_TRX_ID is newer than the purge view.
NOTE: This function should only be called by the purge thread, only while holding a latch on the leaf page of the secondary index entry (or keeping the buffer pool watch on the page). It is possible that this function first returns true and then false, if a user transaction inserts a record that the secondary index entry would refer to. However, in that case, the user transaction would also re-insert the secondary index entry after purge has removed it and released the leaf page latch.
node | in/out: row purge node |
index | in: secondary index |
entry | in: secondary index entry |