InnoDB Plugin  1.0
trx0types.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1996, 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 trx0types_h
27 #define trx0types_h
28 
29 #include "ut0byte.h"
30 
32 #define TRX_ID_FMT IB_ID_FMT
33 
36 #define TRX_ID_MAX_LEN 17
37 
39 enum trx_que_t {
45 };
46 
49  TRX_STATE_NOT_STARTED,
50  TRX_STATE_ACTIVE,
51  TRX_STATE_PREPARED, /* Support for 2PC/XA */
52  TRX_STATE_COMMITTED_IN_MEMORY
53 };
54 
68 };
69 
71 /* @{ */
73 struct trx_t;
75 struct trx_lock_t;
77 struct trx_sys_t;
79 struct trx_sig_t;
81 struct trx_rseg_t;
83 struct trx_undo_t;
85 struct trx_undo_arr_t;
87 struct trx_undo_inf_t;
89 struct trx_purge_t;
91 struct roll_node_t;
93 struct commit_node_t;
95 struct trx_named_savept_t;
96 /* @} */
97 
99 enum trx_rb_ctx {
100  RB_NONE = 0,
111 };
112 
121 
123 #define TRX_ID_MAX IB_ID_MAX
124 
128 };
129 
131 /* @{ */
133 typedef byte trx_sysf_t;
135 typedef byte trx_rsegf_t;
137 typedef byte trx_usegf_t;
139 typedef byte trx_ulogf_t;
141 typedef byte trx_upagef_t;
142 
144 typedef byte trx_undo_rec_t;
145 /* @} */
146 
147 #endif