|
InnoDB Plugin
1.0
|
#include "mtr0log.h"#include "trx0trx.h"#include "trx0undo.h"#include "row0row.h"#include "lock0lock.h"#include "page0zip.h"

Functions | |
| UNIV_INLINE upd_t * | upd_create (ulint n, mem_heap_t *heap) |
| UNIV_INLINE ulint | upd_get_n_fields (const upd_t *update) |
| UNIV_INLINE upd_field_t * | upd_get_nth_field (const upd_t *update, ulint n) |
| UNIV_INLINE void | upd_field_set_field_no (upd_field_t *upd_field, ulint field_no, dict_index_t *index, trx_t *trx) |
| UNIV_INLINE const upd_field_t * | upd_get_field_by_field_no (const upd_t *update, ulint no) |
| UNIV_INLINE void | row_upd_rec_sys_fields (rec_t *rec, page_zip_des_t *page_zip, dict_index_t *index, const ulint *offsets, const trx_t *trx, roll_ptr_t roll_ptr) |
Update of a row
Created 12/27/1996 Heikki Tuuri
| UNIV_INLINE void row_upd_rec_sys_fields | ( | rec_t * | rec, |
| page_zip_des_t * | page_zip, | ||
| dict_index_t * | index, | ||
| const ulint * | offsets, | ||
| const trx_t * | trx, | ||
| roll_ptr_t | roll_ptr | ||
| ) |
Updates the trx id and roll ptr field in a clustered index record when a row is updated or marked deleted.
| rec | in/out: record |
| page_zip | in/out: compressed page whose uncompressed part will be updated, or NULL |
| index | in: clustered index |
| offsets | in: rec_get_offsets(rec, index) |
| trx | in: transaction |
| roll_ptr | in: roll ptr of the undo log record, can be 0 during IMPORT |
| UNIV_INLINE upd_t* upd_create | ( | ulint | n, |
| mem_heap_t * | heap | ||
| ) |
Creates an update vector object.
| n | in: number of fields |
| heap | in: heap from which memory allocated |
| UNIV_INLINE void upd_field_set_field_no | ( | upd_field_t * | upd_field, |
| ulint | field_no, | ||
| dict_index_t * | index, | ||
| trx_t * | trx | ||
| ) |
Sets an index field number to be updated by an update vector field.
| upd_field | in: update vector field |
| field_no | in: field number in a clustered index |
| index | in: index |
| trx | in: transaction |
| UNIV_INLINE const upd_field_t* upd_get_field_by_field_no | ( | const upd_t * | update, |
| ulint | no | ||
| ) |
Returns a field of an update vector by field_no.
| update | in: update vector |
| no | in: field_no |
| UNIV_INLINE ulint upd_get_n_fields | ( | const upd_t * | update | ) |
Returns the number of fields in the update vector == number of columns to be updated by an update vector.
| update | in: update vector |
| UNIV_INLINE upd_field_t* upd_get_nth_field | ( | const upd_t * | update, |
| ulint | n | ||
| ) |
Returns the nth field of an update vector.
| update | in: update vector |
| n | in: field position in update vector |
1.8.1.2