diff options
Diffstat (limited to 'storage/innobase/row/row0uins.cc')
-rw-r--r-- | storage/innobase/row/row0uins.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/innobase/row/row0uins.cc b/storage/innobase/row/row0uins.cc index 0ce136c5906..f4c37d26d76 100644 --- a/storage/innobase/row/row0uins.cc +++ b/storage/innobase/row/row0uins.cc @@ -384,6 +384,7 @@ static bool row_undo_ins_parse_undo_rec(undo_node_t* node, bool dict_locked) goto close_table; case TRX_UNDO_INSERT_METADATA: case TRX_UNDO_INSERT_REC: + case TRX_UNDO_EMPTY: break; case TRX_UNDO_RENAME_TABLE: dict_table_t* table = node->table; @@ -424,6 +425,9 @@ close_table: ptr = trx_undo_rec_get_row_ref( ptr, clust_index, &node->ref, node->heap); + } else if (node->rec_type == TRX_UNDO_EMPTY) { + node->ref = nullptr; + return true; } else { node->ref = &trx_undo_metadata; if (!row_undo_search_clust_to_pcur(node)) { @@ -596,6 +600,11 @@ row_undo_ins( log_free_check(); ut_ad(!node->table->is_temporary()); err = row_undo_ins_remove_clust_rec(node); + break; + case TRX_UNDO_EMPTY: + node->table->empty_table(thr); + err = DB_SUCCESS; + break; } dict_table_close(node->table, dict_locked, FALSE); |