InnoDB Plugin
1.0
Main Page
Data Structures
Files
File List
Globals
include
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
{
40
TRX_QUE_RUNNING
,
41
TRX_QUE_LOCK_WAIT
,
43
TRX_QUE_ROLLING_BACK
,
44
TRX_QUE_COMMITTING
45
};
46
48
enum
trx_state_t
{
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
56
enum
trx_dict_op_t
{
58
TRX_DICT_OP_NONE
= 0,
63
TRX_DICT_OP_TABLE
= 1,
67
TRX_DICT_OP_INDEX
= 2
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,
101
RB_NORMAL
,
102
RB_RECOVERY_PURGE_REC
,
109
RB_RECOVERY
111
};
112
114
typedef
ib_id_t
row_id_t
;
116
typedef
ib_id_t
trx_id_t
;
118
typedef
ib_id_t
roll_ptr_t
;
120
typedef
ib_id_t
undo_no_t
;
121
123
#define TRX_ID_MAX IB_ID_MAX
124
126
struct
trx_savept_t
{
127
undo_no_t
least_undo_no
;
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
Generated on Fri Aug 21 2015 19:14:24 for InnoDB Plugin by
1.8.1.2