MySQL 9.1.0
Source Code Documentation
|
Class that purges delete marked records from indexes, both secondary and cluster. More...
Public Member Functions | |
IndexPurge (trx_t *trx, dict_index_t *index) 1 | |
Constructor. More... | |
~IndexPurge () 1=default | |
Destructor. More... | |
dberr_t | garbage_collect () 1 |
Purge delete marked records. More... | |
ulint | get_n_rows () const 1 |
The number of records that are not delete marked. More... | |
Protected Member Functions | |
IndexPurge () | |
IndexPurge (const IndexPurge &) | |
IndexPurge & | operator= (const IndexPurge &) |
Private Member Functions | |
void | open () 1 |
Begin import, position the cursor on the first record. More... | |
void | close () 1 |
Close the persistent curosr and commit the mini-transaction. More... | |
dberr_t | next () 1 |
Position the cursor on the next record. More... | |
void | purge_pessimistic_delete () 1 |
Store the persistent cursor position and reopen the B-tree cursor in BTR_MODIFY_TREE mode, because the tree structure may be changed during a pessimistic delete. More... | |
void | purge () 1 |
Purge delete-marked records. More... | |
Private Attributes | |
trx_t * | m_trx |
User transaction. More... | |
mtr_t | m_mtr |
Mini-transaction. More... | |
btr_pcur_t | m_pcur |
Persistent cursor. More... | |
dict_index_t * | m_index |
Index to be processed. More... | |
ulint | m_n_rows |
Records in index. More... | |
Class that purges delete marked records from indexes, both secondary and cluster.
It does a pessimistic delete. This should only be done if we couldn't purge the delete marked records during Phase I.
|
inline |
Constructor.
trx | the user transaction covering the import tablespace |
index | to be imported. |
|
default |
Destructor.
|
protected |
|
protected |
|
private |
Close the persistent curosr and commit the mini-transaction.
dberr_t IndexPurge::garbage_collect | ( | ) |
Purge delete marked records.
|
inline |
The number of records that are not delete marked.
|
private |
Position the cursor on the next record.
|
private |
Begin import, position the cursor on the first record.
|
protected |
|
private |
Purge delete-marked records.
|
private |
Store the persistent cursor position and reopen the B-tree cursor in BTR_MODIFY_TREE mode, because the tree structure may be changed during a pessimistic delete.
|
private |
Index to be processed.
|
private |
Mini-transaction.
|
private |
Records in index.
|
private |
Persistent cursor.
|
private |
User transaction.