Drizzled Public API Documentation

btr_pcur_struct Struct Reference

Public Attributes

btr_cur_t btr_cur
 
ulint latch_mode
 
ulint old_stored
 
rec_t * old_rec
 
ulint old_n_fields
 
ulint rel_pos
 
buf_block_tblock_when_stored
 
ib_uint64_t modify_clock
 
ulint pos_state
 
ulint search_mode
 
trx_ttrx_if_known
 
byte * old_rec_buf
 
ulint buf_size
 

Detailed Description

Definition at line 458 of file btr0pcur.h.

Member Data Documentation

btr_cur_t btr_pcur_struct::btr_cur

a B-tree cursor

Definition at line 459 of file btr0pcur.h.

Referenced by btr_pcur_create_for_mysql(), btr_pcur_free_for_mysql(), and row_update_for_mysql().

ulint btr_pcur_struct::buf_size
           old_rec_buf size if old_rec_buf

is not NULL

Definition at line 502 of file btr0pcur.h.

Referenced by btr_pcur_copy_stored_position(), and btr_pcur_store_position().

ulint btr_pcur_struct::latch_mode
             see TODO note below!

BTR_SEARCH_LEAF, BTR_MODIFY_LEAF, BTR_MODIFY_TREE, or BTR_NO_LATCHES, depending on the latching state of the page and tree where the cursor is positioned; the last value means that the cursor is not currently positioned: we say then that the cursor is detached; it can be restored to attached if the old position was stored in old_rec

Definition at line 460 of file btr0pcur.h.

Referenced by btr_pcur_free_for_mysql(), btr_pcur_move_backward_from_page(), btr_pcur_move_to_next_page(), btr_pcur_move_to_prev(), btr_pcur_release_leaf(), btr_pcur_restore_position_func(), and btr_pcur_store_position().

ib_uint64_t btr_pcur_struct::modify_clock
                   the modify clock value of the

buffer block when the cursor position was stored

Definition at line 484 of file btr0pcur.h.

Referenced by btr_pcur_restore_position_func(), and btr_pcur_store_position().

ulint btr_pcur_struct::old_n_fields

number of fields in old_rec

Definition at line 477 of file btr0pcur.h.

Referenced by btr_pcur_copy_stored_position(), btr_pcur_free_for_mysql(), btr_pcur_restore_position_func(), and btr_pcur_store_position().

rec_t* btr_pcur_struct::old_rec
           if cursor position is stored,

contains an initial segment of the latest record cursor was positioned either on, before, or after

Definition at line 473 of file btr0pcur.h.

Referenced by btr_pcur_copy_stored_position(), btr_pcur_free_for_mysql(), btr_pcur_restore_position_func(), and btr_pcur_store_position().

byte* btr_pcur_struct::old_rec_buf
               NULL, or a dynamically allocated

buffer for old_rec

Definition at line 500 of file btr0pcur.h.

Referenced by btr_pcur_copy_stored_position(), btr_pcur_free_for_mysql(), and btr_pcur_store_position().

ulint btr_pcur_struct::old_stored
ulint btr_pcur_struct::pos_state
             see TODO note below!

BTR_PCUR_IS_POSITIONED, BTR_PCUR_WAS_POSITIONED, BTR_PCUR_NOT_POSITIONED

Definition at line 487 of file btr0pcur.h.

Referenced by btr_pcur_free_for_mysql(), btr_pcur_move_backward_from_page(), btr_pcur_move_to_next_page(), btr_pcur_move_to_prev(), btr_pcur_release_leaf(), btr_pcur_restore_position_func(), and btr_pcur_store_position().

ulint btr_pcur_struct::rel_pos
           BTR_PCUR_ON, BTR_PCUR_BEFORE, or

BTR_PCUR_AFTER, depending on whether cursor was on, before, or after the old_rec record

Definition at line 478 of file btr0pcur.h.

Referenced by btr_pcur_restore_position_func(), btr_pcur_store_position(), and row_update_for_mysql().

ulint btr_pcur_struct::search_mode

PAGE_CUR_G, ...

Definition at line 491 of file btr0pcur.h.

Referenced by btr_pcur_restore_position_func(), and row_search_for_mysql().

trx_t* btr_pcur_struct::trx_if_known
               the transaction, if we know it;

otherwise this field is not defined; can ONLY BE USED in error prints in fatal assertion failures!

Definition at line 492 of file btr0pcur.h.

Referenced by btr_pcur_restore_position_func(), and row_search_for_mysql().


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