75row_undo_ins_remove_clust_rec(
91 if (node->
table->
id == DICT_INDEXES_ID) {
97 dict_drop_index_tree(btr_pcur_get_rec(&(node->
pcur)), &mtr);
104 &(node->
pcur), &mtr);
108 btr_cur = btr_pcur_get_btr_cur(&(node->
pcur));
110 success = btr_cur_optimistic_delete(btr_cur, &mtr);
124 &(node->
pcur), &mtr);
127 btr_cur_pessimistic_delete(&err, FALSE, btr_cur,
136 if (err == DB_OUT_OF_FILE_SPACE
160row_undo_ins_remove_sec_low(
176 btr_cur = btr_pcur_get_btr_cur(&pcur);
183 switch (search_result) {
198 err = btr_cur_optimistic_delete(btr_cur, &mtr)
199 ? DB_SUCCESS : DB_FAIL;
209 btr_cur_pessimistic_delete(&err, FALSE, btr_cur,
225row_undo_ins_remove_sec(
237 if (err == DB_SUCCESS) {
266row_undo_ins_parse_undo_rec(
270 dict_index_t* clust_index;
281 &dummy_extern, &undo_no, &table_id);
282 ut_ad(type == TRX_UNDO_INSERT_REC);
286 node->
table = dict_table_get_on_id(table_id, node->
trx);
289 if (UNIV_UNLIKELY(node->
table == NULL)) {
293 clust_index = dict_table_get_first_index(node->
table);
295 if (clust_index != NULL) {
297 ptr, clust_index, &node->
ref, node->
heap);
300 fprintf(stderr,
" InnoDB: table ");
303 fprintf(stderr,
" has no indexes, "
304 "ignoring the table\n");
327 row_undo_ins_parse_undo_rec(node);
338 node->
index = dict_table_get_next_index(
339 dict_table_get_first_index(node->
table));
341 while (node->
index != NULL) {
347 if (UNIV_UNLIKELY(!entry)) {
360 err = row_undo_ins_remove_sec(node->
index, entry);
362 if (err != DB_SUCCESS) {
368 node->
index = dict_table_get_next_index(node->
index);
372 return(row_undo_ins_remove_clust_rec(node));
#define BTR_CUR_RETRY_SLEEP_TIME
#define BTR_CUR_RETRY_DELETE_N_TIMES
UNIV_INLINE void btr_pcur_commit_specify_mtr(btr_pcur_t *pcur, mtr_t *mtr)
UNIV_INLINE void btr_pcur_close(btr_pcur_t *cursor)
struct btr_pcur_struct btr_pcur_t
struct btr_cur_struct btr_cur_t
UNIV_INLINE ulint dict_index_is_clust(const dict_index_t *index) __attribute__((pure))
UNIV_INLINE void log_free_check(void)
UNIV_INTERN void mtr_commit(mtr_t *mtr) __attribute__((nonnull))
UNIV_INLINE void mtr_start(mtr_t *mtr) __attribute__((nonnull))
UNIV_INTERN void os_thread_sleep(ulint tm)
UNIV_INTERN enum row_search_result row_search_index_entry(dict_index_t *index, const dtuple_t *entry, ulint mode, btr_pcur_t *pcur, mtr_t *mtr)
UNIV_INTERN dtuple_t * row_build_index_entry(const dtuple_t *row, row_ext_t *ext, dict_index_t *index, mem_heap_t *heap)
UNIV_INTERN ulint row_undo_ins(undo_node_t *node)
UNIV_INTERN ibool row_undo_search_clust_to_pcur(undo_node_t *node)
unsigned ibd_file_missing
ulint dict_operation_lock_mode
trx_undo_rec_t * undo_rec
UNIV_INTERN byte * trx_undo_rec_get_row_ref(byte *ptr, dict_index_t *index, dtuple_t **ref, mem_heap_t *heap)
UNIV_INTERN byte * trx_undo_rec_get_pars(trx_undo_rec_t *undo_rec, ulint *type, ulint *cmpl_info, ibool *updated_extern, undo_no_t *undo_no, table_id_t *table_id)
UNIV_INTERN void trx_undo_rec_release(trx_t *trx, undo_no_t undo_no)
UNIV_INTERN ibool trx_is_recv(const trx_t *trx)
UNIV_INTERN void ut_print_timestamp(FILE *file)
UNIV_INTERN void ut_print_name(FILE *f, struct trx_struct *trx, ibool table_id, const char *name)