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