MySQL 9.0.0
Source Code Documentation
row0uins.h File Reference

Fresh insert undo. More...

#include "univ.i"
#include "data0data.h"
#include "dict0types.h"
#include "mtr0mtr.h"
#include "que0types.h"
#include "row0types.h"
#include "trx0types.h"

Go to the source code of this file.

Functions

dberr_t row_undo_ins (undo_node_t *node, que_thr_t *thr)
 Undoes a fresh insert of a row to a table. More...
 

Detailed Description

Fresh insert undo.

Created 2/25/1997 Heikki Tuuri

Function Documentation

◆ row_undo_ins()

dberr_t row_undo_ins ( undo_node_t node,
que_thr_t thr 
)

Undoes a fresh insert of a row to a table.

A fresh insert means that the same clustered index unique key did not have any record, even delete marked, at the time of the insert. InnoDB is eager in a rollback: if it figures out that an index record will be removed in the purge anyway, it will remove it in the rollback.

Returns
DB_SUCCESS in: query thread

A fresh insert means that the same clustered index unique key did not have any record, even delete marked, at the time of the insert. InnoDB is eager in a rollback: if it figures out that an index record will be removed in the purge anyway, it will remove it in the rollback.

Returns
DB_SUCCESS or DB_OUT_OF_FILE_SPACE
Parameters
nodein: row undo node
thrin: query thread