mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / storage / ndb / include / kernel / signaldata / DictObjOp.hpp
blobb742f52be4f6a829731e2bf5ec86ffb9ce2e92b4
1 /* Copyright (c) 2003, 2005, 2006 MySQL AB
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 #ifndef DICT_OBJ_OP_HPP
17 #define DICT_OBJ_OP_HPP
19 struct DictObjOp {
21 enum RequestType {
22 Prepare = 0, // Prepare create obj
23 Commit = 1, // Commit create obj
24 Abort = 2 // Prepare failed, drop instead
27 enum State {
28 Defined = 0,
29 Preparing = 1,
30 Prepared = 2,
31 Committing = 3,
32 Committed = 4,
33 Aborting = 5,
34 Aborted = 6
38 struct DictCommitReq
40 Uint32 senderData;
41 Uint32 senderRef;
42 Uint32 op_key;
44 STATIC_CONST( SignalLength = 3 );
45 STATIC_CONST( GSN = GSN_DICT_COMMIT_REQ );
48 struct DictCommitRef
50 Uint32 senderData;
51 Uint32 senderRef;
52 Uint32 errorCode;
53 enum ErrorCode
55 NF_FakeErrorREF = 1
57 STATIC_CONST( SignalLength = 3 );
58 STATIC_CONST( GSN = GSN_DICT_COMMIT_REF );
61 struct DictCommitConf
63 Uint32 senderData;
64 Uint32 senderRef;
66 STATIC_CONST( SignalLength = 2 );
67 STATIC_CONST( GSN = GSN_DICT_COMMIT_CONF );
70 struct DictAbortReq
72 Uint32 senderData;
73 Uint32 senderRef;
74 Uint32 op_key;
76 STATIC_CONST( SignalLength = 3 );
77 STATIC_CONST( GSN = GSN_DICT_ABORT_REQ );
80 struct DictAbortRef
82 Uint32 senderData;
83 Uint32 senderRef;
84 Uint32 errorCode;
85 enum ErrorCode
87 NF_FakeErrorREF = 1
89 STATIC_CONST( SignalLength = 3 );
90 STATIC_CONST( GSN = GSN_DICT_ABORT_REF );
93 struct DictAbortConf
95 Uint32 senderData;
96 Uint32 senderRef;
98 STATIC_CONST( SignalLength = 2 );
99 STATIC_CONST( GSN = GSN_DICT_ABORT_CONF );
103 #endif