MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DictObjOp.hpp
1 /*
2  Copyright (C) 2005, 2006 MySQL AB
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef DICT_OBJ_OP_HPP
20 #define DICT_OBJ_OP_HPP
21 
22 struct DictObjOp {
23 
24  enum RequestType {
25  Prepare = 0, // Prepare create obj
26  Commit = 1, // Commit create obj
27  Abort = 2 // Prepare failed, drop instead
28  };
29 
30  enum State {
31  Defined = 0,
32  Preparing = 1,
33  Prepared = 2,
34  Committing = 3,
35  Committed = 4,
36  Aborting = 5,
37  Aborted = 6
38  };
39 };
40 
42 {
43  Uint32 senderData;
44  Uint32 senderRef;
45  Uint32 op_key;
46 
47  STATIC_CONST( SignalLength = 3 );
48  STATIC_CONST( GSN = GSN_DICT_COMMIT_REQ );
49 };
50 
52 {
53  Uint32 senderData;
54  Uint32 senderRef;
55  Uint32 errorCode;
56  enum ErrorCode
57  {
58  NF_FakeErrorREF = 1
59  };
60  STATIC_CONST( SignalLength = 3 );
61  STATIC_CONST( GSN = GSN_DICT_COMMIT_REF );
62 };
63 
65 {
66  Uint32 senderData;
67  Uint32 senderRef;
68 
69  STATIC_CONST( SignalLength = 2 );
70  STATIC_CONST( GSN = GSN_DICT_COMMIT_CONF );
71 };
72 
74 {
75  Uint32 senderData;
76  Uint32 senderRef;
77  Uint32 op_key;
78 
79  STATIC_CONST( SignalLength = 3 );
80  STATIC_CONST( GSN = GSN_DICT_ABORT_REQ );
81 };
82 
84 {
85  Uint32 senderData;
86  Uint32 senderRef;
87  Uint32 errorCode;
88  enum ErrorCode
89  {
90  NF_FakeErrorREF = 1
91  };
92  STATIC_CONST( SignalLength = 3 );
93  STATIC_CONST( GSN = GSN_DICT_ABORT_REF );
94 };
95 
97 {
98  Uint32 senderData;
99  Uint32 senderRef;
100 
101  STATIC_CONST( SignalLength = 2 );
102  STATIC_CONST( GSN = GSN_DICT_ABORT_CONF );
103 };
104 
105 
106 #endif