36 #ifndef UNIV_HOTBACKUP
76 __attribute__((nonnull, pure, warn_unused_result));
99 #ifndef UNIV_HOTBACKUP
217 __attribute__((nonnull, warn_unused_result));
232 __attribute__((nonnull));
234 # define trx_undo_free_last_page(trx,undo,mtr) \
235 trx_undo_free_last_page_func(trx,undo,mtr)
237 # define trx_undo_free_last_page(trx,undo,mtr) \
238 trx_undo_free_last_page_func(undo,mtr)
254 __attribute__((nonnull));
256 # define trx_undo_truncate_end(trx,undo,limit) \
257 trx_undo_truncate_end_func(trx,undo,limit)
259 # define trx_undo_truncate_end(trx,undo,limit) \
260 trx_undo_truncate_end_func(undo,limit)
303 __attribute__((nonnull, warn_unused_result));
353 UNIV_COLD __attribute__((nonnull));
398 #define TRX_UNDO_INSERT 1
399 #define TRX_UNDO_UPDATE 2
404 #define TRX_UNDO_ACTIVE 1
406 #define TRX_UNDO_CACHED 2
407 #define TRX_UNDO_TO_FREE 3
408 #define TRX_UNDO_TO_PURGE 4
411 #define TRX_UNDO_PREPARED 5
414 #ifndef UNIV_HOTBACKUP
476 #define TRX_UNDO_PAGE_HDR FSEG_PAGE_DATA
480 #define TRX_UNDO_PAGE_TYPE 0
482 #define TRX_UNDO_PAGE_START 2
487 #define TRX_UNDO_PAGE_FREE 4
490 #define TRX_UNDO_PAGE_NODE 6
493 #define TRX_UNDO_PAGE_HDR_SIZE (6 + FLST_NODE_SIZE)
502 #define TRX_UNDO_PAGE_REUSE_LIMIT (3 * UNIV_PAGE_SIZE / 4)
516 #define TRX_UNDO_SEG_HDR (TRX_UNDO_PAGE_HDR + TRX_UNDO_PAGE_HDR_SIZE)
520 #define TRX_UNDO_STATE 0
521 #define TRX_UNDO_LAST_LOG 2
524 #define TRX_UNDO_FSEG_HEADER 4
526 #define TRX_UNDO_PAGE_LIST (4 + FSEG_HEADER_SIZE)
532 #define TRX_UNDO_SEG_HDR_SIZE (4 + FSEG_HEADER_SIZE + FLST_BASE_NODE_SIZE)
540 #define TRX_UNDO_TRX_ID 0
541 #define TRX_UNDO_TRX_NO 8
544 #define TRX_UNDO_DEL_MARKS 16
548 #define TRX_UNDO_LOG_START 18
554 #define TRX_UNDO_XID_EXISTS 20
557 #define TRX_UNDO_DICT_TRANS 21
564 #define TRX_UNDO_TABLE_ID 22
566 #define TRX_UNDO_NEXT_LOG 30
568 #define TRX_UNDO_PREV_LOG 32
570 #define TRX_UNDO_HISTORY_NODE 34
574 #define TRX_UNDO_LOG_OLD_HDR_SIZE (34 + FLST_NODE_SIZE)
587 #define TRX_UNDO_XA_FORMAT (TRX_UNDO_LOG_OLD_HDR_SIZE)
589 #define TRX_UNDO_XA_TRID_LEN (TRX_UNDO_XA_FORMAT + 4)
591 #define TRX_UNDO_XA_BQUAL_LEN (TRX_UNDO_XA_TRID_LEN + 4)
593 #define TRX_UNDO_XA_XID (TRX_UNDO_XA_BQUAL_LEN + 4)
595 #define TRX_UNDO_LOG_XA_HDR_SIZE (TRX_UNDO_XA_XID + XIDDATASIZE)