InnoDB Plugin  1.0
row0log.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2011, 2014, 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 /*=============*/
46  dict_index_t* index,
47  dict_table_t* table,
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 /*==============*/
73  dict_index_t* index)
74  __attribute__((nonnull));
75 
76 /******************************************************/
81 UNIV_INLINE
82 bool
84 /*==================*/
85  dict_index_t* index,
86  const dtuple_t* tuple,
87  trx_id_t trx_id)
89  __attribute__((nonnull, warn_unused_result));
90 /******************************************************/
92 UNIV_INTERN
93 void
95 /*==============*/
96  dict_index_t* index,
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,
122  dict_index_t* index,
124  const ulint* offsets,
125  const byte* sys)
127  UNIV_COLD __attribute__((nonnull(1,2,3)));
128 
129 /******************************************************/
132 UNIV_INTERN
133 void
135 /*=================*/
136  const rec_t* rec,
138  dict_index_t* index,
140  const ulint* offsets,
141  const dtuple_t* old_pk)
143  UNIV_COLD __attribute__((nonnull(1,2,3)));
144 
145 /******************************************************/
150 UNIV_INTERN
151 const dtuple_t*
153 /*=================*/
154  const rec_t* rec,
156  dict_index_t* index,
158  const ulint* offsets,
160  byte* sys,
162  mem_heap_t** heap)
163  UNIV_COLD __attribute__((nonnull(1,2,5), warn_unused_result));
164 
165 /******************************************************/
168 UNIV_INTERN
169 void
171 /*=================*/
172  const rec_t* rec,
174  dict_index_t* index,
176  const ulint* offsets)
177  UNIV_COLD __attribute__((nonnull));
178 /******************************************************/
180 UNIV_INTERN
181 void
183 /*====================*/
184  dict_index_t* index,
185  ulint page_no)
186  UNIV_COLD __attribute__((nonnull));
187 /******************************************************/
189 UNIV_INTERN
190 void
192 /*=====================*/
193  dict_index_t* index,
194  ulint page_no)
195  UNIV_COLD __attribute__((nonnull));
196 /******************************************************/
199 UNIV_INTERN
200 dberr_t
202 /*================*/
203  que_thr_t* thr,
204  dict_table_t* old_table,
206  struct TABLE* table)
208  __attribute__((nonnull, warn_unused_result));
209 
210 /******************************************************/
214 UNIV_INTERN
215 trx_id_t
217 /*================*/
218  dict_index_t* index)
219  __attribute__((nonnull, warn_unused_result));
220 
221 /******************************************************/
224 UNIV_INTERN
225 dberr_t
227 /*==========*/
228  trx_t* trx,
230  dict_index_t* index,
231  struct TABLE* table)
233  __attribute__((nonnull, warn_unused_result));
234 
235 #ifndef UNIV_NONINL
236 #include "row0log.ic"
237 #endif
238 
239 #endif /* row0log.h */