MySQL 9.0.0
Source Code Documentation
trx0rec.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 1996, 2024, 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 designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26*****************************************************************************/
27
28/** @file include/trx0rec.h
29 Transaction undo log record
30
31 Created 3/26/1996 Heikki Tuuri
32 *******************************************************/
33
34#ifndef trx0rec_h
35#define trx0rec_h
36
37#include "univ.i"
38
39#include "data0data.h"
40#include "dict0types.h"
41#include "lob0undo.h"
42#include "mtr0mtr.h"
43#include "page0types.h"
44#include "rem0types.h"
45#include "row0log.h"
46#include "row0types.h"
47#include "trx0types.h"
48
49#ifndef UNIV_HOTBACKUP
50#include "que0types.h"
51
52/** Copies the undo record to the heap.
53@param[in] undo_page Undo Page
54@param[in] undo_offset offset of the undo record in the page
55@param[in] heap heap where copied
56@return copy of undo log record */
57static inline trx_undo_rec_t *trx_undo_rec_copy(const page_t *undo_page,
58 uint32_t undo_offset,
59 mem_heap_t *heap);
60
61/** Reads the undo log record type.
62 @return record type */
64 const trx_undo_rec_t *undo_rec); /*!< in: undo log record */
65/** Reads from an undo log record the record compiler info.
66 @return compiler info */
68 const trx_undo_rec_t *undo_rec); /*!< in: undo log record */
69/** Returns true if an undo log record contains an extern storage field.
70 @return true if extern */
72 const trx_undo_rec_t *undo_rec); /*!< in: undo log record */
73/** Reads the undo log record number.
74 @return undo no */
76 const trx_undo_rec_t *undo_rec); /*!< in: undo log record */
77
78/** Reads from an undo log record the table ID
79@param[in] undo_rec Undo log record
80@return the table ID */
82 const trx_undo_rec_t *undo_rec);
83
84/** Builds a row reference from an undo log record.
85 @return pointer to remaining part of undo record */
86const byte *trx_undo_rec_get_row_ref(
87 const byte *ptr, /*!< in: remaining part of a copy of an undo log
88 record, at the start of the row reference;
89 NOTE that this copy of the undo log record must
90 be preserved as long as the row reference is
91 used, as we do NOT copy the data in the
92 record! */
93 dict_index_t *index, /*!< in: clustered index */
94 dtuple_t **ref, /*!< out, own: row reference */
95 mem_heap_t *heap); /*!< in: memory heap from which the memory
96 needed is allocated */
97/** Reads from an undo log update record the system field values of the old
98 version.
99 @return remaining part of undo log record after reading these values */
101 const byte *ptr, /*!< in: remaining part of undo
102 log record after reading
103 general parameters */
104 trx_id_t *trx_id, /*!< out: trx id */
105 roll_ptr_t *roll_ptr, /*!< out: roll ptr */
106 ulint *info_bits); /*!< out: info bits state */
107
108struct type_cmpl_t;
109
110/** Builds an update vector based on a remaining part of an undo log record.
111@param[in] ptr Remaining part in update undo log record, after reading the row
112reference. NOTE that this copy of the undo log record must be preserved as long
113as the update vector is used, as we do NOT copy the data in the record!
114@param[in] index Clustered index.
115@param[in] type TRX_UNDO_UPD_EXIST_REC, TRX_UNDO_UPD_DEL_REC, or
116TRX_UNDO_DEL_MARK_REC; in the last case, only trx id and roll ptr fields are
117added to the update vector.
118@param[in] trx_id Transaction id from this undo record.
119@param[in] roll_ptr Roll pointer from this undo record.
120@param[in] info_bits Info bits from this undo record.
121@param[in] heap Memory heap from which the memory needed is allocated.
122@param[out] upd Update vector.
123@param[out] lob_undo LOB undo information.
124@param[out] type_cmpl Type compilation info.
125@return remaining part of the record, NULL if an error detected, which
126means that the record is corrupted. */
128 const byte *ptr, const dict_index_t *index, ulint type, trx_id_t trx_id,
129 roll_ptr_t roll_ptr, ulint info_bits, mem_heap_t *heap, upd_t **upd,
130 lob::undo_vers_t *lob_undo, type_cmpl_t &type_cmpl);
131
132/** Builds a partial row from an update undo log record, for purge.
133 It contains the columns which occur as ordering in any index of the table.
134 Any missing columns are indicated by col->mtype == DATA_MISSING.
135 @return pointer to remaining part of undo record */
136[[nodiscard]] const byte *trx_undo_rec_get_partial_row(
137 const byte *ptr, /*!< in: remaining part in update undo log
138 record of a suitable type, at the start of
139 the stored index columns;
140 NOTE that this copy of the undo log record must
141 be preserved as long as the partial row is
142 used, as we do NOT copy the data in the
143 record! */
144 dict_index_t *index, /*!< in: clustered index */
145 dtuple_t **row, /*!< out, own: partial row */
146 bool ignore_prefix, /*!< in: flag to indicate if we
147 expect blob prefixes in undo. Used
148 only in the assertion. */
149 mem_heap_t *heap); /*!< in: memory heap from which the memory
150 needed is allocated */
151/** Writes information to an undo log about an insert, update, or a delete
152 marking of a clustered index record. This information is used in a rollback of
153 the transaction and in consistent reads that must look to the history of this
154 transaction.
155 @return DB_SUCCESS or error code */
157 ulint flags, /*!< in: if BTR_NO_UNDO_LOG_FLAG bit is
158 set, does nothing */
159 ulint op_type, /*!< in: TRX_UNDO_INSERT_OP or
160 TRX_UNDO_MODIFY_OP */
161 que_thr_t *thr, /*!< in: query thread */
162 dict_index_t *index, /*!< in: clustered index */
163 const dtuple_t *clust_entry, /*!< in: in the case of an insert,
164 index entry to insert into the
165 clustered index, otherwise NULL */
166 const upd_t *update, /*!< in: in the case of an update,
167 the update vector, otherwise NULL */
168 ulint cmpl_info, /*!< in: compiler info on secondary
169 index updates */
170 const rec_t *rec, /*!< in: case of an update or delete
171 marking, the record in the clustered
172 index, otherwise NULL */
173 const ulint *offsets, /*!< in: rec_get_offsets(rec) */
174 roll_ptr_t *roll_ptr); /*!< out: rollback pointer to the
175 inserted undo log record,
176 0 if BTR_NO_UNDO_LOG
177 flag was specified */
178
179/** status bit used for trx_undo_prev_version_build() */
180
181/** TRX_UNDO_PREV_IN_PURGE tells trx_undo_prev_version_build() that it
182is being called purge view and we would like to get the purge record
183even it is in the purge view (in normal case, it will return without
184fetching the purge record */
185constexpr uint32_t TRX_UNDO_PREV_IN_PURGE = 0x1;
186
187/** This tells trx_undo_prev_version_build() to fetch the old value in
188the undo log (which is the after image for an update) */
189constexpr uint32_t TRX_UNDO_GET_OLD_V_VALUE = 0x2;
190
191/** Build a previous version of a clustered index record. The caller must hold
192a latch on the index page of the clustered index record.
193If the vrow passed to this function is not null, then this function will store
194information about virtual columns from the requested version in vrow, unless the
195change did not affect any secondary index nor ordering field of clustered index
196(the change has UPD_NODE_NO_ORD_CHANGE flag) in which case the requested
197information can not be reconstructed from undo log, and the caller may assume
198that the (virtual) columns of secondary index have the same values they have in
199the more recent version (the one `rec` comes from).
200Equivalently, if the vrow is not returned, it is either because it was not
201requested, or not available due to UPD_NODE_NO_ORD_CHANGE.
202Obviously vrow is also not set in case rec is the oldest version in history,
203in which case we also set old_vers to NULL.
204@param[in] index_rec clustered index record in the index tree
205@param[in] index_mtr mtr which contains the latch to index_rec page
206 and purge_view
207@param[in] rec version of a clustered index record
208@param[in] index clustered index
209@param[in,out] offsets rec_get_offsets(rec, index)
210@param[in] heap memory heap from which the memory needed is
211 allocated
212@param[out] old_vers previous version, or NULL if rec is the first
213 inserted version, or if history data has been
214 deleted
215@param[in] v_heap memory heap used to create vrow dtuple if it is
216 not yet created. This heap diffs from "heap"
217 above in that it could be
218 prebuilt->old_vers_heap for selection
219@param[out] vrow virtual column info, if any
220@param[in] v_status status determine if it is going into this
221 function by purge thread or not. And if we read
222 "after image" of undo log has been rebuilt
223@param[in] lob_undo LOB undo information.
224@retval true if previous version was built, or if it was an insert or the table
225has been rebuilt
226@retval false if the previous version is earlier than purge_view, or being
227purged, which means that it may have been removed */
228bool trx_undo_prev_version_build(const rec_t *index_rec, mtr_t *index_mtr,
229 const rec_t *rec, const dict_index_t *index,
230 ulint *offsets, mem_heap_t *heap,
231 rec_t **old_vers, mem_heap_t *v_heap,
232 const dtuple_t **vrow, ulint v_status,
233 lob::undo_vers_t *lob_undo);
234
235#endif /* !UNIV_HOTBACKUP */
236/** Parses a redo log record of adding an undo log record.
237 @return end of log record or NULL */
239 const byte *ptr, /*!< in: buffer */
240 const byte *end_ptr, /*!< in: buffer end */
241 page_t *page); /*!< in: page or NULL */
242
243/** Parses a redo log record of erasing of an undo page end.
244@param[in,out] ptr Buffer.
245@param[in,out] end_ptr Buffer end.
246@param[in,out] page Page or nullptr.
247@param[in,out] mtr MTR or nullptr.
248@return end of log record or nullptr */
249const byte *trx_undo_parse_erase_page_end(const byte *ptr, const byte *end_ptr,
250 page_t *page, mtr_t *mtr);
251
252/** Read from an undo log record a non-virtual column value.
253@param[in,out] ptr pointer to remaining part of the undo record
254@param[in,out] field stored field
255@param[in,out] len length of the field, or UNIV_SQL_NULL
256@param[in,out] orig_len original length of the locally stored part
257of an externally stored column, or 0
258@return remaining part of undo log record after reading these values */
259const byte *trx_undo_rec_get_col_val(const byte *ptr, const byte **field,
260 ulint *len, ulint *orig_len);
261
262/** Read virtual column value from undo log
263@param[in] table the table
264@param[in] ptr undo log pointer
265@param[in,out] row the dtuple to fill
266@param[in] in_purge called by purge thread
267@param[in] online true if this is from online DDL log
268@param[in] col_map online rebuild column map
269@param[in,out] heap memory heap to keep value when necessary */
270void trx_undo_read_v_cols(const dict_table_t *table, const byte *ptr,
271 const dtuple_t *row, bool in_purge, bool online,
272 const ulint *col_map, mem_heap_t *heap);
273
274/** Read virtual column index from undo log or online log if the log
275contains such info, and in the undo log case, verify the column is
276still indexed, and output its position
277@param[in] table the table
278@param[in] ptr undo log pointer
279@param[in] first_v_col if this is the first virtual column, which
280 has the version marker
281@param[in,out] is_undo_log this function is used to parse both undo log,
282 and online log for virtual columns. So
283 check to see if this is undo log. When
284 first_v_col is true, is_undo_log is output,
285 when first_v_col is false, is_undo_log is input
286@param[in,out] field_no the column number
287@return remaining part of undo log record after reading these values */
288const byte *trx_undo_read_v_idx(const dict_table_t *table, const byte *ptr,
289 bool first_v_col, bool *is_undo_log,
290 ulint *field_no);
291
292#ifndef UNIV_HOTBACKUP
293
294/* Types of an undo log record: these have to be smaller than 16, as the
295compilation info multiplied by 16 is ORed to this value in an undo log
296record */
297
298/** fresh insert into clustered index */
299constexpr uint32_t TRX_UNDO_INSERT_REC = 11;
300/** update of a non-delete-marked record */
301constexpr uint32_t TRX_UNDO_UPD_EXIST_REC = 12;
302/** update of a delete marked record to a not delete marked record; also the
303fields of the record can change */
304constexpr uint32_t TRX_UNDO_UPD_DEL_REC = 13;
305/* delete marking of a record; fields do not change */
306constexpr uint32_t TRX_UNDO_DEL_MARK_REC = 14;
307/** compilation info is multiplied by this and ORed to the type above */
308constexpr uint32_t TRX_UNDO_CMPL_INFO_MULT = 16;
309/** If this bit is set in type_cmpl, then the undo log record has support for
310 partial update of BLOBs. Also to make the undo log format extensible,
311 introducing a new flag next to the type_cmpl flag. */
312constexpr uint32_t TRX_UNDO_MODIFY_BLOB = 64;
313/* This bit can be ORed to type_cmpl to denote that we updated external storage
314 fields: used by purge to free the external storage */
315constexpr uint32_t TRX_UNDO_UPD_EXTERN = 128;
316
317/** Operation type flags used in trx_undo_report_row_operation */
318constexpr uint32_t TRX_UNDO_INSERT_OP = 1;
319constexpr uint32_t TRX_UNDO_MODIFY_OP = 2;
320
321/** The type and compilation info flag in the undo record for update.
322For easier understanding let the 8 bits be numbered as
3237, 6, 5, 4, 3, 2, 1, 0. */
326
327 const byte *read(const byte *ptr) {
329 return (ptr + 1);
330 }
331
333 /* Get 0-3 */
334 return (m_flag & 0x0F);
335 }
336
338 /* Get bits 5 and 4 */
339 return ((m_flag >> 4) & 0x03);
340 }
341
342 /** Is an LOB updated by this update operation.
343 @return true if LOB is updated, false otherwise. */
345 /* Check if bit 7 is set. */
346 return (m_flag & TRX_UNDO_UPD_EXTERN);
347 }
348
349 /** Does the undo log record contains information about LOB partial
350 update vector.
351 @return true if undo contains LOB update info. */
352 bool is_lob_undo() const {
353 /* Check if bit 6 is set. */
354 return (m_flag & TRX_UNDO_MODIFY_BLOB);
355 }
356
357 private:
358 uint8_t m_flag;
359};
360
361/** Reads from an undo log record the general parameters.
362 @return remaining part of undo log record after reading these values */
363const byte *trx_undo_rec_get_pars(
364 trx_undo_rec_t *undo_rec, /*!< in: undo log record */
365 ulint *type, /*!< out: undo record type:
366 TRX_UNDO_INSERT_REC, ... */
367 ulint *cmpl_info, /*!< out: compiler info, relevant only
368 for update type records */
369 bool *updated_extern, /*!< out: true if we updated an
370 externally stored fild */
371 undo_no_t *undo_no, /*!< out: undo log record number */
372 table_id_t *table_id, /*!< out: table id */
373 type_cmpl_t &type_cmpl); /*!< out: type compilation info. */
374
375/** Get the max free space of undo log by assuming it's a fresh new page
376and the free space doesn't count for the undo log header too. */
378
379/** Decide if the following undo log record is a multi-value virtual column
380@param[in] undo_rec undo log record
381@return true if this is a multi-value virtual column log, otherwise false */
382bool trx_undo_rec_is_multi_value(const byte *undo_rec);
383
384/** Read from an undo log record of a multi-value virtual column.
385@param[in] ptr pointer to remaining part of the undo record
386@param[in,out] field stored field, nullptr if the col is no longer
387 indexed or existing, in the latter case,
388 this function will only skip the log
389@param[in,out] heap memory heap
390@return remaining part of undo log record after reading these values */
391const byte *trx_undo_rec_get_multi_value(const byte *ptr, dfield_t *field,
392 mem_heap_t *heap);
393#include "trx0rec.ic"
394
395#endif /* !UNIV_HOTBACKUP */
396
397#endif /* trx0rec_h */
int page
Definition: ctype-mb.cc:1224
SQL data field and tuple.
dberr_t
Definition: db0err.h:39
Data dictionary global types.
ib_id_t table_id_t
Table or partition identifier (unique within an InnoDB instance).
Definition: dict0types.h:232
static int flags[50]
Definition: hp_test1.cc:40
Undo logging small changes to BLOBs.
static uint8_t mach_read_from_1(const byte *b)
The following function is used to fetch data from one byte.
Mini-transaction buffer.
static uint update
Definition: myisamlog.cc:94
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
PT & ref(PT *tp)
Definition: tablespace_impl.cc:359
Index page routines.
byte page_t
Type of the index page.
Definition: page0types.h:152
Query graph global types.
Record manager global types.
byte rec_t
Definition: rem0types.h:41
required string type
Definition: replication_group_member_actions.proto:34
Modification log for online index creation and online table rebuild.
Row operation global types.
Structure for an SQL data field.
Definition: data0data.h:605
Data structure for an index.
Definition: dict0mem.h:1046
Data structure for a database table.
Definition: dict0mem.h:1909
Structure for an SQL data tuple of fields (logical record)
Definition: data0data.h:684
The list of modifications to be applied on LOBs to get older versions.
Definition: lob0undo.h:146
The info structure stored at the beginning of a heap block.
Definition: mem0mem.h:302
Mini-transaction handle and buffer.
Definition: mtr0mtr.h:177
Definition: que0que.h:242
The type and compilation info flag in the undo record for update.
Definition: trx0rec.h:324
ulint type_info()
Definition: trx0rec.h:332
uint8_t m_flag
Definition: trx0rec.h:358
ulint cmpl_info()
Definition: trx0rec.h:337
bool is_lob_updated()
Is an LOB updated by this update operation.
Definition: trx0rec.h:344
bool is_lob_undo() const
Does the undo log record contains information about LOB partial update vector.
Definition: trx0rec.h:352
type_cmpl_t()
Definition: trx0rec.h:325
const byte * read(const byte *ptr)
Definition: trx0rec.h:327
Definition: row0upd.h:565
static bool trx_undo_rec_get_extern_storage(const trx_undo_rec_t *undo_rec)
Returns true if an undo log record contains an extern storage field.
bool trx_undo_prev_version_build(const rec_t *index_rec, mtr_t *index_mtr, const rec_t *rec, const dict_index_t *index, ulint *offsets, mem_heap_t *heap, rec_t **old_vers, mem_heap_t *v_heap, const dtuple_t **vrow, ulint v_status, lob::undo_vers_t *lob_undo)
Build a previous version of a clustered index record.
Definition: trx0rec.cc:2442
const byte * trx_undo_update_rec_get_sys_cols(const byte *ptr, trx_id_t *trx_id, roll_ptr_t *roll_ptr, ulint *info_bits)
Reads from an undo log update record the system field values of the old version.
Definition: trx0rec.cc:1706
static undo_no_t trx_undo_rec_get_undo_no(const trx_undo_rec_t *undo_rec)
Reads the undo log record number.
constexpr uint32_t TRX_UNDO_UPD_EXTERN
Definition: trx0rec.h:315
const byte * trx_undo_rec_get_pars(trx_undo_rec_t *undo_rec, ulint *type, ulint *cmpl_info, bool *updated_extern, undo_no_t *undo_no, table_id_t *table_id, type_cmpl_t &type_cmpl)
Reads from an undo log record the general parameters.
Definition: trx0rec.cc:554
constexpr uint32_t TRX_UNDO_GET_OLD_V_VALUE
This tells trx_undo_prev_version_build() to fetch the old value in the undo log (which is the after i...
Definition: trx0rec.h:189
const byte * trx_undo_read_v_idx(const dict_table_t *table, const byte *ptr, bool first_v_col, bool *is_undo_log, ulint *field_no)
Read virtual column index from undo log or online log if the log contains such info,...
Definition: trx0rec.cc:353
void trx_undo_read_v_cols(const dict_table_t *table, const byte *ptr, const dtuple_t *row, bool in_purge, bool online, const ulint *col_map, mem_heap_t *heap)
Read virtual column value from undo log.
Definition: trx0rec.cc:2663
constexpr uint32_t TRX_UNDO_PREV_IN_PURGE
status bit used for trx_undo_prev_version_build()
Definition: trx0rec.h:185
const byte * trx_undo_rec_get_col_val(const byte *ptr, const byte **field, ulint *len, ulint *orig_len)
Read from an undo log record a non-virtual column value.
Definition: trx0rec.cc:640
const byte * trx_undo_parse_erase_page_end(const byte *ptr, const byte *end_ptr, page_t *page, mtr_t *mtr)
Parses a redo log record of erasing of an undo page end.
Definition: trx0rec.cc:2094
const byte * trx_undo_rec_get_row_ref(const byte *ptr, dict_index_t *index, dtuple_t **ref, mem_heap_t *heap)
Builds a row reference from an undo log record.
Definition: trx0rec.cc:682
constexpr uint32_t TRX_UNDO_MODIFY_BLOB
If this bit is set in type_cmpl, then the undo log record has support for partial update of BLOBs.
Definition: trx0rec.h:312
static trx_undo_rec_t * trx_undo_rec_copy(const page_t *undo_page, uint32_t undo_offset, mem_heap_t *heap)
Copies the undo record to the heap.
const byte * trx_undo_update_rec_get_update(const byte *ptr, const dict_index_t *index, ulint type, trx_id_t trx_id, roll_ptr_t roll_ptr, ulint info_bits, mem_heap_t *heap, upd_t **upd, lob::undo_vers_t *lob_undo, type_cmpl_t &type_cmpl)
Builds an update vector based on a remaining part of an undo log record.
Definition: trx0rec.cc:1726
static ulint trx_undo_rec_get_cmpl_info(const trx_undo_rec_t *undo_rec)
Reads from an undo log record the record compiler info.
constexpr uint32_t TRX_UNDO_CMPL_INFO_MULT
compilation info is multiplied by this and ORed to the type above
Definition: trx0rec.h:308
dberr_t trx_undo_report_row_operation(ulint flags, ulint op_type, que_thr_t *thr, dict_index_t *index, const dtuple_t *clust_entry, const upd_t *update, ulint cmpl_info, const rec_t *rec, const ulint *offsets, roll_ptr_t *roll_ptr)
Writes information to an undo log about an insert, update, or a delete marking of a clustered index r...
Definition: trx0rec.cc:2112
constexpr uint32_t TRX_UNDO_DEL_MARK_REC
Definition: trx0rec.h:306
constexpr uint32_t TRX_UNDO_INSERT_REC
fresh insert into clustered index
Definition: trx0rec.h:299
const byte * trx_undo_parse_add_undo_rec(const byte *ptr, const byte *end_ptr, page_t *page)
Parses a redo log record of adding an undo log record.
Definition: trx0rec.cc:104
constexpr uint32_t TRX_UNDO_INSERT_OP
Operation type flags used in trx_undo_report_row_operation.
Definition: trx0rec.h:318
static ulint trx_undo_rec_get_type(const trx_undo_rec_t *undo_rec)
Reads the undo log record type.
const byte * trx_undo_rec_get_partial_row(const byte *ptr, dict_index_t *index, dtuple_t **row, bool ignore_prefix, mem_heap_t *heap)
Builds a partial row from an update undo log record, for purge.
Definition: trx0rec.cc:1917
const byte * trx_undo_rec_get_multi_value(const byte *ptr, dfield_t *field, mem_heap_t *heap)
Read from an undo log record of a multi-value virtual column.
Definition: trx0rec.cc:624
constexpr uint32_t TRX_UNDO_UPD_DEL_REC
update of a delete marked record to a not delete marked record; also the fields of the record can cha...
Definition: trx0rec.h:304
table_id_t trx_undo_rec_get_table_id(const trx_undo_rec_t *undo_rec)
Reads from an undo log record the table ID.
Definition: trx0rec.cc:594
bool trx_undo_rec_is_multi_value(const byte *undo_rec)
Decide if the following undo log record is a multi-value virtual column.
Definition: trx0rec.cc:233
constexpr uint32_t TRX_UNDO_MODIFY_OP
Definition: trx0rec.h:319
size_t trx_undo_max_free_space()
Get the max free space of undo log by assuming it's a fresh new page and the free space doesn't count...
Definition: trx0rec.cc:161
constexpr uint32_t TRX_UNDO_UPD_EXIST_REC
update of a non-delete-marked record
Definition: trx0rec.h:301
Transaction undo log record.
Transaction system global type definitions.
byte trx_undo_rec_t
Undo log record.
Definition: trx0types.h:167
ib_id_t undo_no_t
Undo number.
Definition: trx0types.h:142
ib_id_t trx_id_t
Transaction identifier (DB_TRX_ID, DATA_TRX_ID)
Definition: trx0types.h:138
ib_id_t roll_ptr_t
Rollback pointer (DB_ROLL_PTR, DATA_ROLL_PTR)
Definition: trx0types.h:140
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406