|
InnoDB Plugin
1.0
|
#include "btr0btr.h"

Macros | |
| #define | LIMIT_OPTIMISTIC_INSERT_DEBUG(NREC, CODE) |
Functions | |
| UNIV_INLINE page_cur_t * | btr_cur_get_page_cur (const btr_cur_t *cursor) |
| UNIV_INLINE buf_block_t * | btr_cur_get_block (const btr_cur_t *cursor) |
| UNIV_INLINE rec_t * | btr_cur_get_rec (const btr_cur_t *cursor) |
| UNIV_INLINE page_zip_des_t * | btr_cur_get_page_zip (btr_cur_t *cursor) |
| UNIV_INLINE void | btr_cur_invalidate (btr_cur_t *cursor) |
| UNIV_INLINE page_t * | btr_cur_get_page (btr_cur_t *cursor) |
| UNIV_INLINE void | btr_cur_position (dict_index_t *index, rec_t *rec, buf_block_t *block, btr_cur_t *cursor) |
| UNIV_INLINE ibool | btr_cur_compress_recommendation (btr_cur_t *cursor, mtr_t *mtr) |
| UNIV_INLINE ibool | btr_cur_can_delete_without_compress (btr_cur_t *cursor, ulint rec_size, mtr_t *mtr) |
| UNIV_INLINE ibool | btr_blob_op_is_update (enum blob_op op) |
The index tree cursor
Created 10/16/1994 Heikki Tuuri
| #define LIMIT_OPTIMISTIC_INSERT_DEBUG | ( | NREC, | |
| CODE | |||
| ) |
Determine if an operation on off-page columns is an update.
| op | in: operation |
| UNIV_INLINE ibool 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).
| 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 |
| UNIV_INLINE buf_block_t* btr_cur_get_block | ( | const btr_cur_t * | cursor | ) |
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 |
| UNIV_INLINE page_cur_t* btr_cur_get_page_cur | ( | const btr_cur_t * | cursor | ) |
Returns the page cursor component of a tree cursor.
| cursor | in: tree cursor |
| UNIV_INLINE page_zip_des_t* btr_cur_get_page_zip | ( | btr_cur_t * | cursor | ) |
Returns the compressed page on which the tree cursor is positioned.
| cursor | in: tree cursor |
| UNIV_INLINE rec_t* btr_cur_get_rec | ( | const btr_cur_t * | cursor | ) |
Returns the record pointer of a tree cursor.
| cursor | in: tree cursor |
| UNIV_INLINE void btr_cur_invalidate | ( | btr_cur_t * | cursor | ) |
Invalidates a tree cursor by setting record pointer to NULL.
| cursor | in: tree cursor |
| UNIV_INLINE 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.
| index | in: index |
| rec | in: record in tree |
| block | in: buffer block of rec |
| cursor | out: cursor |
1.8.1.2