MySQL 8.4.1
Source Code Documentation
row0uins.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 1997, 2024, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26*****************************************************************************/
27
28/** @file include/row0uins.h
29 Fresh insert undo
30
31 Created 2/25/1997 Heikki Tuuri
32 *******************************************************/
33
34#ifndef row0uins_h
35#define row0uins_h
36
37#include "univ.i"
38
39#include "data0data.h"
40#include "dict0types.h"
41#include "mtr0mtr.h"
42#include "que0types.h"
43#include "row0types.h"
44#include "trx0types.h"
45
46/** Undoes a fresh insert of a row to a table. A fresh insert means that
47 the same clustered index unique key did not have any record, even delete
48 marked, at the time of the insert. InnoDB is eager in a rollback:
49 if it figures out that an index record will be removed in the purge
50 anyway, it will remove it in the rollback.
51 @return DB_SUCCESS */
52[[nodiscard]] dberr_t row_undo_ins(undo_node_t *node, /*!< in: row undo node */
53 que_thr_t *thr); /*!< in: query thread */
54
55#endif
SQL data field and tuple.
dberr_t
Definition: db0err.h:39
Data dictionary global types.
Mini-transaction buffer.
Query graph global types.
Row operation global types.
dberr_t row_undo_ins(undo_node_t *node, que_thr_t *thr)
Undoes a fresh insert of a row to a table.
Definition: row0uins.cc:465
Definition: que0que.h:242
Undo node structure.
Definition: row0undo.h:120
Transaction system global type definitions.
Version control for database, common definitions, and include files.