1 /***************************************************************************** 2 3 Copyright (c) 1997, 2021, Oracle and/or its affiliates. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License, version 2.0, 7 as published by the Free Software Foundation. 8 9 This program is also distributed with certain software (including 10 but not limited to OpenSSL) that is licensed under separate terms, 11 as designated in a particular file or component or in included license 12 documentation. The authors of MySQL hereby grant you an additional 13 permission to link the program and your derivative works with the 14 separately licensed software that they have included with MySQL. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License, version 2.0, 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 Street, Suite 500, Boston, MA 02110-1335 USA 24 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 #include "data0data.h" 39 #include "dict0types.h" 40 #include "trx0types.h" 41 #include "que0types.h" 42 #include "row0types.h" 43 #include "mtr0mtr.h" 44 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 dberr_t 53 row_undo_ins( 54 /*=========*/ 55 undo_node_t* node, /*!< in: row undo node */ 56 que_thr_t* thr) /*!< in: query thread */ 57 MY_ATTRIBUTE((nonnull, warn_unused_result)); 58 #ifndef UNIV_NONINL 59 #include "row0uins.ic" 60 #endif 61 62 #endif 63