MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropNodegroup.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 DROP_NODEGROUP_HPP
17 #define DROP_NODEGROUP_HPP
18 
19 #include "SignalData.hpp"
20 
25  friend class NdbDictInterface;
26  friend class Dbdict;
27 
31  friend bool printDROP_NODEGROUP_REQ(FILE*, const Uint32*, Uint32, Uint16);
32 
33  STATIC_CONST( SignalLength = 6 );
34 
35  union {
36  Uint32 senderData;
37  Uint32 clientData;
38  };
39  union {
40  Uint32 senderRef;
41  Uint32 clientRef;
42  };
43  Uint32 nodegroupId;
44  Uint32 requestInfo;
45  Uint32 transId;
46  Uint32 transKey;
47 };
48 
53  friend class Dbdict;
54 
58  friend class NdbDictInterface;
59 
63  friend bool printDROP_NODEGROUP_REF(FILE*, const Uint32*, Uint32, Uint16);
64 
65  STATIC_CONST( SignalLength = 7 );
66 
67  enum ErrorCode {
68  NoError = 0,
69  Busy = 701,
70  NotMaster = 702,
71  SingleUser = 299,
72  NoSuchNodegroup = -1,
73  NodegroupInUse = -2
74  };
75 
76  Uint32 senderData;
77  Uint32 senderRef;
78  Uint32 masterNodeId;
79  Uint32 errorCode;
80  Uint32 errorLine;
81  Uint32 errorNodeId;
82  Uint32 transId;
83 };
84 
89  friend class Dbdict;
90 
94  friend class NdbDictInterface;
95 
99  friend bool printDROP_NODEGROUP_CONF(FILE*, const Uint32*, Uint32, Uint16);
100 
101  STATIC_CONST( SignalLength = 3 );
102 
103  Uint32 senderData;
104  Uint32 senderRef;
105  Uint32 transId;
106 };
107 
108 #endif