MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropFilegroupImpl.hpp
1 /*
2  Copyright (C) 2005, 2006, 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_IMPL_HPP
20 #define DROP_FILEGROUP_IMPL_HPP
21 
22 #include "SignalData.hpp"
23 
28  friend class Dbdict;
29  friend class Tsman;
30  friend class Lgman;
31 
35  friend bool printDROP_FILEGROUP_IMPL_REQ(FILE*, const Uint32*, Uint32, Uint16);
36 
37  STATIC_CONST( SignalLength = 6 );
38 
39  enum RequestInfo {
40  Prepare = 0x1,
41  Commit = 0x2,
42  Abort = 0x4
43  };
44 
45  Uint32 senderData;
46  Uint32 senderRef;
47 
48  Uint32 requestInfo;
49  Uint32 filegroup_id;
50  Uint32 filegroup_version;
51  Uint32 requestType;
52 };
53 
58  friend class Dbdict;
59  friend class Tsman;
60  friend class Lgman;
61 
65  friend bool printDROP_FILEGROUP_IMPL_REF(FILE*, const Uint32*, Uint32, Uint16);
66 
67  STATIC_CONST( SignalLength = 3 );
68 
69  enum ErrorCode {
70  NoError = 0,
71  NoSuchFilegroup = 767,
72  InvalidFilegroupVersion = 767,
73  FilegroupInUse = 768
74  };
75 
76  Uint32 senderData;
77  Uint32 senderRef;
78  Uint32 errorCode;
79 };
80 
85  friend class Dbdict;
86  friend class Tsman;
87  friend class Lgman;
88 
92  friend bool printDROP_FILEGROUP_IMPL_CONF(FILE*, const Uint32*, Uint32, Uint16);
93 
94  STATIC_CONST( SignalLength = 2 );
95 
96  Uint32 senderData;
97  Uint32 senderRef;
98 };
99 
104  friend class Dbdict;
105  friend class Tsman;
106  friend class Lgman;
107 
111  friend bool printDROP_FILE_IMPL_REQ(FILE*, const Uint32*, Uint32, Uint16);
112 
113  STATIC_CONST( SignalLength = 8 );
114 
115  enum RequestInfo {
116  Prepare = 0x1,
117  Commit = 0x2,
118  Abort = 0x4
119  };
120 
121  Uint32 senderData;
122  Uint32 senderRef;
123 
124  Uint32 requestInfo;
125  Uint32 file_id;
126  Uint32 file_version;
127  Uint32 filegroup_id;
128  Uint32 filegroup_version;
129  Uint32 requestType;
130 };
131 
133  friend class Dbdict;
134  friend class Tsman;
135  friend class Lgman;
136 
140  friend bool printDROP_FILE_IMPL_REF(FILE*, const Uint32*, Uint32, Uint16);
141 
142  STATIC_CONST( SignalLength = 5 );
143 
144  enum ErrorCode {
145  NoError = 0,
146  InvalidFilegroup = 767,
147  InvalidFilegroupVersion = 767,
148  NoSuchFile = 766,
149  FileInUse = 770
150  };
151 
152  Uint32 senderData;
153  Uint32 senderRef;
154  Uint32 errorCode;
155  Uint32 fsErrCode;
156  Uint32 osErrCode;
157 };
158 
160  friend class Dbdict;
161  friend class Tsman;
162  friend class Lgman;
163 
164 
168  friend bool printDROP_FILE_IMPL_CONF(FILE*, const Uint32*, Uint32, Uint16);
169 
170  STATIC_CONST( SignalLength = 2 );
171 
172  Uint32 senderData;
173  Uint32 senderRef;
174 };
175 
176 #endif