MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateNodegroupImpl.hpp
1 /* Copyright (C) 2008 MySQL AB
2 
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.
6 
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.
11 
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 */
15 
16 #ifndef CREATE_NODEGROUP_IMPL_HPP
17 #define CREATE_NODEGROUP_IMPL_HPP
18 
19 #include "SignalData.hpp"
20 
25  friend class Dbdict;
26  friend class Tsman;
27  friend class Lgman;
28 
32  friend bool printCREATE_NODEGROUP_IMPL_REQ(FILE*, const Uint32*, Uint32, Uint16);
33 
34  STATIC_CONST( SignalLength = 6 + MAX_REPLICAS );
35 
36  enum {
37  RT_PARSE = 0x1,
38  RT_PREPARE = 0x2,
39  RT_ABORT = 0x3,
40  RT_COMMIT = 0x4,
41  RT_COMPLETE = 0x5
42  };
43 
44  Uint32 senderData;
45  Uint32 senderRef;
46  Uint32 requestType;
47  Uint32 nodegroupId;
48  Uint32 gci_hi;
49  Uint32 gci_lo;
50  Uint32 nodes[MAX_REPLICAS]; // 0 terminated
51 };
52 
57  friend class Dbdict;
58  friend class Tsman;
59  friend class Lgman;
60 
64  friend bool printCREATE_NODEGROUP_IMPL_REF(FILE*, const Uint32*, Uint32, Uint16);
65 
66  STATIC_CONST( SignalLength = 3 );
67 
68  Uint32 senderData;
69  Uint32 senderRef;
70  Uint32 errorCode;
71 };
72 
77  friend class Dbdict;
78  friend class Tsman;
79  friend class Lgman;
80 
84  friend bool printCREATE_NODEGROUP_IMPL_CONF(FILE*, const Uint32*, Uint32, Uint16);
85 
86  STATIC_CONST( SignalLength = 4 );
87 
88  Uint32 senderData;
89  Uint32 senderRef;
90  Uint32 gci_hi;
91  Uint32 gci_lo;
92 };
93 
94 #endif