MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateFilegroup.hpp
1 /*
2  Copyright (C) 2005-2008 MySQL AB, 2010 Sun Microsystems, Inc.
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 CREATE_FILEGROUP_HPP
20 #define CREATE_FILEGROUP_HPP
21 
22 #include "SignalData.hpp"
23 
28  friend class NdbDictInterface;
29  friend class Dbdict;
30 
34  friend bool printCREATE_FILEGROUP_REQ(FILE*, const Uint32*, Uint32, Uint16);
35 
36  STATIC_CONST( SignalLength = 6 );
37 
38  union {
39  Uint32 senderData;
40  Uint32 clientData;
41  };
42  union {
43  Uint32 senderRef;
44  Uint32 clientRef;
45  };
46  Uint32 objType;
47  Uint32 requestInfo;
48  Uint32 transId;
49  Uint32 transKey;
50  SECTION( FILEGROUP_INFO = 0 );
51 };
52 
57  friend class Dbdict;
58 
62  friend class NdbDictInterface;
63 
67  friend bool printCREATE_FILEGROUP_REF(FILE*, const Uint32*, Uint32, Uint16);
68 
69  STATIC_CONST( SignalLength = 7 );
70 
71  enum ErrorCode {
72  NoError = 0,
73  Busy = 701,
74  NotMaster = 702,
75  NoMoreObjectRecords = 710,
76  InvalidFormat = 740,
77  OutOfFilegroupRecords = 765,
78  InvalidExtentSize = 764,
79  InvalidUndoBufferSize = 779,
80  NoSuchLogfileGroup = 767,
81  InvalidFilegroupVersion = 768,
82  SingleUser = 299
83  };
84 
85  Uint32 senderData;
86  Uint32 senderRef;
87  Uint32 masterNodeId;
88  Uint32 errorCode;
89  Uint32 errorLine;
90  Uint32 errorNodeId;
91  Uint32 transId;
92 };
93 
98  friend class Dbdict;
99 
103  friend class NdbDictInterface;
104 
108  friend bool printCREATE_FILEGROUP_CONF(FILE*, const Uint32*, Uint32, Uint16);
109 
110  STATIC_CONST( SignalLength = 6 );
111 
112  /* matches NdbDictionary.hpp */
113  enum {
114  WarnUndobufferRoundUp = 0x1,
115  WarnExtentRoundUp = 0x4
116  };
117 
118  Uint32 senderData;
119  Uint32 senderRef;
120  Uint32 filegroupId;
121  Uint32 filegroupVersion;
122  Uint32 transId;
123  Uint32 warningFlags;
124 };
125 
130  friend class NdbDictInterface;
131  friend class Dbdict;
132  friend class Tsman;
133 
137  friend bool printCREATE_FILE_REQ(FILE*, const Uint32*, Uint32, Uint16);
138 
139  STATIC_CONST( SignalLength = 6 );
140 
141  union {
142  Uint32 senderData;
143  Uint32 clientData;
144  };
145  union {
146  Uint32 senderRef;
147  Uint32 clientRef;
148  };
149  Uint32 objType;
150  Uint32 requestInfo;
151  Uint32 transId;
152  Uint32 transKey;
153 
154  enum RequstInfo
155  {
156  ForceCreateFile = 0x1
157  };
158 
159  SECTION( FILE_INFO = 0 );
160 };
161 
166  friend class Dbdict;
167 
171  friend class NdbDictInterface;
172 
176  friend bool printCREATE_FILE_REF(FILE*, const Uint32*, Uint32, Uint16);
177 
178  STATIC_CONST( SignalLength = 8 );
179 
180  enum ErrorCode {
181  NoError = 0,
182  Busy = 701,
183  NotMaster = 702,
184  NoMoreObjectRecords = 710,
185  InvalidFormat = 752,
186  NoSuchFilegroup = 753,
187  InvalidFilegroupVersion = 754,
188  FilenameAlreadyExists = 760,
189  OutOfFileRecords = 751,
190  InvalidFileType = 750,
191  NotSupportedWhenDiskless = 775,
192  SingleUser = 299,
193  FileSizeTooSmall = 1516
194  };
195 
196  Uint32 senderData;
197  Uint32 senderRef;
198  Uint32 masterNodeId;
199  Uint32 errorCode;
200  Uint32 errorLine;
201  Uint32 errorKey;
202  Uint32 status;
203  Uint32 errorNodeId;
204  Uint32 transId;
205 };
206 
211  friend class Dbdict;
212 
216  friend class Ndbcntr;
217  friend class NdbDictInterface;
218 
222  friend bool printCREATE_FILE_CONF(FILE*, const Uint32*, Uint32, Uint16);
223 
224  STATIC_CONST( SignalLength = 6 );
225 
226  /* matches NdbDictionary.hpp */
227  enum {
228  WarnUndofileRoundDown = 0x2,
229  WarnDatafileRoundDown = 0x8,
230  WarnDatafileRoundUp = 0x10
231  };
232 
233  Uint32 senderData;
234  Uint32 senderRef;
235  Uint32 fileId;
236  Uint32 fileVersion;
237  Uint32 transId;
238  Uint32 warningFlags;
239 };
240 
241 #endif