MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropFilegroup.hpp
1 /*
2  Copyright (C) 2005-2008 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 DROP_FILEGROUP_HPP
20 #define DROP_FILEGROUP_HPP
21 
22 #include "SignalData.hpp"
23 
28  friend class NdbDictInterface;
29  friend class Dbdict;
30  friend class Tsman;
31 
35  friend bool printDROP_FILEGROUP_REQ(FILE*, const Uint32*, Uint32, Uint16);
36 
37  STATIC_CONST( SignalLength = 7 );
38  STATIC_CONST( GSN = GSN_DROP_FILEGROUP_REQ );
39 
40  union {
41  Uint32 senderData;
42  Uint32 clientData;
43  };
44  union {
45  Uint32 senderRef;
46  Uint32 clientRef;
47  };
48  Uint32 filegroup_id;
49  Uint32 filegroup_version;
50  Uint32 requestInfo;
51  Uint32 transKey;
52  Uint32 transId;
53 };
54 
59  friend class Dbdict;
60 
64  friend class Ndbcntr;
65  friend class NdbDictInterface;
66 
70  friend bool printDROP_FILEGROUP_REF(FILE*, const Uint32*, Uint32, Uint16);
71 
72  STATIC_CONST( SignalLength = 9 );
73  STATIC_CONST( GSN = GSN_DROP_FILEGROUP_REF );
74 
75  enum ErrorCode {
76  NoError = 0,
77  Busy = 701,
78  NotMaster = 702,
79  NoSuchFilegroup = 767,
80  FilegroupInUse = 768,
81  InvalidSchemaObjectVersion = 774,
82  SingleUser = 299
83  };
84 
85  Uint32 senderData;
86  Uint32 senderRef;
87  Uint32 masterNodeId;
88  Uint32 errorCode;
89  Uint32 errorLine;
90  Uint32 errorKey;
91  Uint32 errorNodeId;
92  Uint32 transId;
93 };
94 
99  friend class Dbdict;
100 
104  friend class Ndbcntr;
105  friend class NdbDictInterface;
106 
110  friend bool printDROP_FILEGROUP_CONF(FILE*, const Uint32*, Uint32, Uint16);
111 
112  STATIC_CONST( SignalLength = 5 );
113  STATIC_CONST( GSN = GSN_DROP_FILEGROUP_CONF );
114 
115  Uint32 senderData;
116  Uint32 senderRef;
117  Uint32 filegroupId;
118  Uint32 filegroupVersion;
119  Uint32 transId;
120 };
121 
122 struct DropFileReq {
126  friend class NdbDictInterface;
127  friend class Dbdict;
128  friend class Tsman;
129 
133  friend bool printDROP_FILE_REQ(FILE*, const Uint32*, Uint32, Uint16);
134 
135  STATIC_CONST( SignalLength = 7 );
136  STATIC_CONST( GSN = GSN_DROP_FILE_REQ );
137 
138  union {
139  Uint32 senderData;
140  Uint32 clientData;
141  };
142  union {
143  Uint32 senderRef;
144  Uint32 clientRef;
145  };
146  Uint32 file_id;
147  Uint32 file_version;
148  Uint32 requestInfo;
149  Uint32 transKey;
150  Uint32 transId;
151 };
152 
153 struct DropFileRef {
157  friend class Dbdict;
158 
162  friend class Ndbcntr;
163  friend class NdbDictInterface;
164 
168  friend bool printDROP_FILE_REF(FILE*, const Uint32*, Uint32, Uint16);
169 
170  STATIC_CONST( SignalLength = 9 );
171  STATIC_CONST( GSN = GSN_DROP_FILE_REF );
172 
173  enum ErrorCode {
174  NoError = 0,
175  Busy = 701,
176  NotMaster = 702,
177  NoSuchFile = 766,
178  DropUndoFileNotSupported = 769,
179  InvalidSchemaObjectVersion = 774,
180  SingleUser = 299
181  };
182 
183  Uint32 senderData;
184  Uint32 senderRef;
185  Uint32 masterNodeId;
186  Uint32 errorCode;
187  Uint32 errorLine;
188  Uint32 errorKey;
189  Uint32 errorNodeId;
190  Uint32 transId;
191 };
192 
193 struct DropFileConf {
197  friend class Dbdict;
198 
202  friend class Ndbcntr;
203  friend class NdbDictInterface;
204 
208  friend bool printDROP_FILE_CONF(FILE*, const Uint32*, Uint32, Uint16);
209 
210  STATIC_CONST( SignalLength = 5 );
211  STATIC_CONST( GSN = GSN_DROP_FILE_CONF );
212 
213  Uint32 senderData;
214  Uint32 senderRef;
215  Uint32 fileId;
216  Uint32 fileVersion;
217  Uint32 transId;
218 };
219 
220 #endif