MySQL 8.0.39
Source Code Documentation
|
The index tree cursor. More...
#include "btr0btr.h"
Macros | |
#define | LIMIT_OPTIMISTIC_INSERT_DEBUG(NREC, CODE) |
Functions | |
static page_cur_t * | btr_cur_get_page_cur (const btr_cur_t *cursor) |
Returns the page cursor component of a tree cursor. More... | |
static buf_block_t * | btr_cur_get_block (const btr_cur_t *cursor) |
Returns the buffer block on which the tree cursor is positioned. More... | |
static rec_t * | btr_cur_get_rec (const btr_cur_t *cursor) |
Returns the record pointer of a tree cursor. More... | |
static page_zip_des_t * | btr_cur_get_page_zip (btr_cur_t *cursor) |
Returns the compressed page on which the tree cursor is positioned. More... | |
static page_t * | btr_cur_get_page (btr_cur_t *cursor) |
Returns the page of a tree cursor. More... | |
static void | btr_cur_position (dict_index_t *index, rec_t *rec, buf_block_t *block, btr_cur_t *cursor) |
Positions a tree cursor at a given record. More... | |
static bool | btr_cur_compress_recommendation (btr_cur_t *cursor, mtr_t *mtr) |
Checks if compressing an index page where a btr cursor is placed makes sense. More... | |
static bool | btr_cur_can_delete_without_compress (btr_cur_t *cursor, ulint rec_size, mtr_t *mtr) |
Checks if the record on which the cursor is placed can be deleted without making tree compression necessary (or, recommended). More... | |
static void | btr_rec_set_deleted_flag (rec_t *rec, page_zip_des_t *page_zip, bool flag) |
The index tree cursor.
Created 10/16/1994 Heikki Tuuri
#define LIMIT_OPTIMISTIC_INSERT_DEBUG | ( | NREC, | |
CODE | |||
) |
|
inlinestatic |
Checks if the record on which the cursor is placed can be deleted without making tree compression necessary (or, recommended).
cursor | in: btr cursor |
rec_size | in: rec_get_size(btr_cur_get_rec(cursor)) |
mtr | in: mtr |
Checks if compressing an index page where a btr cursor is placed makes sense.
cursor | in: btr cursor |
mtr | in: mtr |
|
inlinestatic |
Returns the buffer block on which the tree cursor is positioned.
cursor | in: tree cursor |
Returns the page of a tree cursor.
cursor | in: tree cursor |
|
inlinestatic |
Returns the page cursor component of a tree cursor.
cursor | in: tree cursor |
|
inlinestatic |
Returns the compressed page on which the tree cursor is positioned.
cursor | in: tree cursor |
Returns the record pointer of a tree cursor.
cursor | in: tree cursor |
|
inlinestatic |
Positions a tree cursor at a given record.
index | in: index |
rec | in: record in tree |
block | in: buffer block of rec |
cursor | out: cursor |
|
inlinestatic |