MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateNodegroup.hpp
1 /* Copyright (C) 2008 MySQL AB, 2008 Sun Microsystems, Inc.
2  All rights reserved. Use is subject to license terms.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 
17 #ifndef CREATE_NODEGROUP_HPP
18 #define CREATE_NODEGROUP_HPP
19 
20 #include "SignalData.hpp"
21 
26  friend class NdbDictInterface;
27  friend class Dbdict;
28 
32  friend bool printCREATE_NODEGROUP_REQ(FILE*, const Uint32*, Uint32, Uint16);
33 
34  STATIC_CONST( SignalLength = 10 );
35 
36  union {
37  Uint32 senderData;
38  Uint32 clientData;
39  };
40  union {
41  Uint32 senderRef;
42  Uint32 clientRef;
43  };
44  Uint32 requestInfo;
45  Uint32 transId;
46  Uint32 transKey;
47  Uint32 nodegroupId; // RNIL == unspecified
48  Uint32 nodes[4]; // 0 terminated
49 };
50 
55  friend class Dbdict;
56 
60  friend class NdbDictInterface;
61 
65  friend bool printCREATE_NODEGROUP_REF(FILE*, const Uint32*, Uint32, Uint16);
66 
67  STATIC_CONST( SignalLength = 7 );
68 
69  enum ErrorCode {
70  NoError = 0,
71  Busy = 701,
72  NotMaster = 702,
73  NoMoreObjectRecords = 710,
74  InvalidFormat = 740,
75  SingleUser = 299,
76  InvalidNoOfNodesInNodegroup = 320,
77  InvalidNodegroupId = 321,
78  NodeAlreadyInNodegroup = 322,
79  NodegroupInUse = 323,
80  NoNodeAlive = 324
81  };
82 
83  Uint32 senderData;
84  Uint32 senderRef;
85  Uint32 masterNodeId;
86  Uint32 errorCode;
87  Uint32 errorLine;
88  Uint32 errorNodeId;
89  Uint32 transId;
90 };
91 
96  friend class Dbdict;
97 
101  friend class NdbDictInterface;
102 
106  friend bool printCREATE_NODEGROUP_CONF(FILE*, const Uint32*, Uint32, Uint16);
107 
108  STATIC_CONST( SignalLength = 4 );
109 
110  Uint32 senderData;
111  Uint32 senderRef;
112  Uint32 nodegroupId;
113  Uint32 transId;
114 };
115 
116 #endif