MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IndexPurge Class Reference

Public Member Functions

 IndexPurge (trx_t *trx, dict_index_t *index) UNIV_NOTHROW
 ~IndexPurge () UNIV_NOTHROW
ulint get_n_rows () const UNIV_NOTHROW

Protected Member Functions

 IndexPurge (const IndexPurge &)
IndexPurgeoperator= (const IndexPurge &)

- of the index to look for

Find the index field entry in in the cfg indexes fields.

Returns
instance if found else 0.
dberr_t garbage_collect () UNIV_NOTHROW

Detailed Description

Class that purges delete marked reocords from indexes, both secondary

and cluster. It does a pessimistic delete. This should only be done if we couldn't purge the delete marked reocrds during Phase I.

Definition at line 297 of file row0import.cc.

Constructor & Destructor Documentation

IndexPurge::IndexPurge ( trx_t trx,
dict_index_t index 
)
inline
Constructor
Parameters
trx- the user transaction covering the import tablespace
index- to be imported
space_id- space id of the tablespace

Definition at line 303 of file row0import.cc.

Here is the call graph for this function:

IndexPurge::~IndexPurge ( )
inline

Descructor

Definition at line 317 of file row0import.cc.

Member Function Documentation

dberr_t IndexPurge::garbage_collect ( )
Purge delete marked records.
Returns
DB_SUCCESS or error code.

Purge delete marked records.

Returns
DB_SUCCESS or error code.

Definition at line 1522 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

ulint IndexPurge::get_n_rows ( ) const
inline
The number of records that are not delete marked.
Returns
total records in the index after purge

Definition at line 325 of file row0import.cc.


The documentation for this class was generated from the following file: