MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
row0log.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2011, 2013, 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 as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
26 #ifndef row0log_h
27 #define row0log_h
28 
29 #include "univ.i"
30 #include "mtr0types.h"
31 #include "row0types.h"
32 #include "rem0types.h"
33 #include "data0types.h"
34 #include "dict0types.h"
35 #include "trx0types.h"
36 #include "que0types.h"
37 
38 /******************************************************/
42 UNIV_INTERN
43 bool
45 /*=============*/
49  bool same_pk,
51  const dtuple_t* add_cols,
54  const ulint* col_map)
56  __attribute__((nonnull(1), warn_unused_result));
57 
58 /******************************************************/
60 UNIV_INTERN
61 void
63 /*=========*/
64  row_log_t*& log)
65  __attribute__((nonnull));
66 
67 /******************************************************/
69 UNIV_INLINE
70 void
72 /*==============*/
74  __attribute__((nonnull));
75 
76 /******************************************************/
81 UNIV_INLINE
82 bool
84 /*==================*/
86  const dtuple_t* tuple,
87  trx_id_t trx_id)
89  __attribute__((nonnull, warn_unused_result));
90 /******************************************************/
92 UNIV_INTERN
93 void
95 /*==============*/
97  const dtuple_t* tuple,
98  trx_id_t trx_id)
100  UNIV_COLD __attribute__((nonnull));
101 
102 /******************************************************/
105 UNIV_INTERN
106 dberr_t
108 /*====================*/
109  const dict_index_t* index)
111  __attribute__((nonnull, warn_unused_result));
112 
113 /******************************************************/
116 UNIV_INTERN
117 void
119 /*=================*/
120  const rec_t* rec,
124  const ulint* offsets,
125  bool purge,
126  trx_id_t trx_id)
128  UNIV_COLD __attribute__((nonnull));
129 
130 /******************************************************/
133 UNIV_INTERN
134 void
136 /*=================*/
137  const rec_t* rec,
141  const ulint* offsets,
142  const dtuple_t* old_pk)
144  UNIV_COLD __attribute__((nonnull(1,2,3)));
145 
146 /******************************************************/
151 UNIV_INTERN
152 const dtuple_t*
154 /*=================*/
155  const rec_t* rec,
159  const ulint* offsets,
161  mem_heap_t** heap)
162  UNIV_COLD __attribute__((nonnull(1,2,4), warn_unused_result));
163 
164 /******************************************************/
167 UNIV_INTERN
168 void
170 /*=================*/
171  const rec_t* rec,
175  const ulint* offsets)
176  UNIV_COLD __attribute__((nonnull));
177 /******************************************************/
179 UNIV_INTERN
180 void
182 /*====================*/
184  ulint page_no)
185  UNIV_COLD __attribute__((nonnull));
186 /******************************************************/
188 UNIV_INTERN
189 void
191 /*=====================*/
193  ulint page_no)
194  UNIV_COLD __attribute__((nonnull));
195 /******************************************************/
198 UNIV_INTERN
199 dberr_t
201 /*================*/
202  que_thr_t* thr,
203  dict_table_t* old_table,
205  struct TABLE* table)
207  __attribute__((nonnull, warn_unused_result));
208 
209 /******************************************************/
213 UNIV_INTERN
214 trx_id_t
216 /*================*/
218  __attribute__((nonnull, warn_unused_result));
219 
220 /******************************************************/
223 UNIV_INTERN
224 dberr_t
226 /*==========*/
227  trx_t* trx,
230  struct TABLE* table)
232  __attribute__((nonnull, warn_unused_result));
233 
234 #ifndef UNIV_NONINL
235 #include "row0log.ic"
236 #endif
237 
238 #endif /* row0log.h */