1 /*****************************************************************************
2 
3 Copyright (c) 1997, 2019, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License, version 2.0, as published by the
7 Free Software Foundation.
8 
9 This program is also distributed with certain software (including but not
10 limited to OpenSSL) that is licensed under separate terms, as designated in a
11 particular file or component or in included license documentation. The authors
12 of MySQL hereby grant you an additional permission to link the program and
13 your derivative works with the separately licensed software that they have
14 included with MySQL.
15 
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
19 for more details.
20 
21 You should have received a copy of the GNU General Public License along with
22 this program; if not, write to the Free Software Foundation, Inc.,
23 51 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 dberr_t row_undo_ins(undo_node_t *node, /*!< in: row undo node */
52                      que_thr_t *thr)    /*!< in: query thread */
53     MY_ATTRIBUTE((warn_unused_result));
54 
55 #endif
56