MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
row0ins.cc File Reference
#include "row0ins.h"
#include "ha_prototypes.h"
#include "dict0dict.h"
#include "dict0boot.h"
#include "trx0rec.h"
#include "trx0undo.h"
#include "btr0btr.h"
#include "btr0cur.h"
#include "mach0data.h"
#include "que0que.h"
#include "row0upd.h"
#include "row0sel.h"
#include "row0row.h"
#include "row0log.h"
#include "rem0cmp.h"
#include "lock0lock.h"
#include "log0log.h"
#include "eval0eval.h"
#include "data0data.h"
#include "usr0sess.h"
#include "buf0lru.h"
#include "fts0fts.h"
#include "fts0types.h"
#include "m_string.h"
Include dependency graph for row0ins.cc:

Go to the source code of this file.

Functions

UNIV_INTERN ins_node_tins_node_create (ulint ins_type, dict_table_t *table, mem_heap_t *heap)
UNIV_INTERN void ins_node_set_new_row (ins_node_t *node, dtuple_t *row)

Variables

static ulint mode
static ulint btr_cur_tcursor
static ulint btr_cur_t ulint ** offsets
static ulint btr_cur_t ulint
mem_heap_t
offsets_heap
static ulint btr_cur_t ulint
mem_heap_t mem_heap_t
heap
static ulint btr_cur_t ulint
mem_heap_t mem_heap_t const
dtuple_t
entry
static ulint btr_cur_t ulint
mem_heap_t mem_heap_t const
dtuple_t que_thr_t
thr

Detailed Description

Insert into a table

Created 4/20/1996 Heikki Tuuri

Definition in file row0ins.cc.

Function Documentation

UNIV_INTERN ins_node_t* ins_node_create ( ulint  ins_type,
dict_table_t table,
mem_heap_t heap 
)

Creates an insert node struct.

Returns
own: insert node struct
Parameters
ins_typein: INS_VALUES, ...
tablein: table where to insert
heapin: mem heap where created

Definition at line 71 of file row0ins.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void ins_node_set_new_row ( ins_node_t node,
dtuple_t row 
)

Sets a new row to insert for an INS_DIRECT node. This function is only used if we have constructed the row separately, which is a rare case; this function is quite slow.

Parameters
nodein: insert node
rowin: new row (or first row) for the node

Definition at line 193 of file row0ins.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

ulint btr_cur_t* cursor

in: B-tree cursor

Definition at line 232 of file row0ins.cc.

in: index entry to insert

Definition at line 232 of file row0ins.cc.

ulint btr_cur_t ulint mem_heap_t mem_heap_t* heap

in/out: memory heap

Definition at line 232 of file row0ins.cc.

ulint mode

< in: undo logging and locking flags in: BTR_MODIFY_LEAF or BTR_MODIFY_TREE, depending on whether mtr holds just a leaf latch or also a tree latch

Definition at line 232 of file row0ins.cc.

ulint btr_cur_t ulint** offsets

in/out: offsets on cursor->page_cur.rec

Definition at line 232 of file row0ins.cc.

ulint btr_cur_t ulint mem_heap_t* offsets_heap

in/out: memory heap that can be emptied

Definition at line 232 of file row0ins.cc.

in: query thread

Definition at line 232 of file row0ins.cc.