~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/ndb/include/kernel/signaldata/DropFilegroup.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2003 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
#ifndef DROP_FILEGROUP_HPP
 
17
#define DROP_FILEGROUP_HPP
 
18
 
 
19
#include "SignalData.hpp"
 
20
 
 
21
struct DropFilegroupReq {
 
22
  /**
 
23
   * Sender(s) / Reciver(s)
 
24
   */
 
25
  friend class NdbDictInterface;
 
26
  friend class Dbdict;
 
27
  friend class Tsman;
 
28
 
 
29
  /**
 
30
   * For printing
 
31
   */
 
32
  friend bool printDROP_FILEGROUP_REQ(FILE*, const Uint32*, Uint32, Uint16);
 
33
  
 
34
  STATIC_CONST( SignalLength = 4 );
 
35
  STATIC_CONST( GSN = GSN_DROP_FILEGROUP_REQ );
 
36
  
 
37
  Uint32 senderData;
 
38
  Uint32 senderRef;
 
39
  Uint32 filegroup_id;
 
40
  Uint32 filegroup_version;
 
41
};
 
42
 
 
43
struct DropFilegroupRef {
 
44
  /**
 
45
   * Sender(s)
 
46
   */
 
47
  friend class Dbdict;
 
48
  
 
49
  /**
 
50
   * Sender(s) / Reciver(s)
 
51
   */
 
52
  friend class Ndbcntr;
 
53
  friend class NdbDictInterface;
 
54
  
 
55
  /**
 
56
   * For printing
 
57
   */
 
58
  friend bool printDROP_FILEGROUP_REF(FILE*, const Uint32*, Uint32, Uint16);
 
59
  
 
60
  STATIC_CONST( SignalLength = 7 );
 
61
  STATIC_CONST( GSN = GSN_DROP_FILEGROUP_REF );
 
62
 
 
63
  enum ErrorCode {
 
64
    NoError = 0,
 
65
    Busy = 701,
 
66
    NotMaster = 702,
 
67
    NoSuchFilegroup = 767,
 
68
    FilegroupInUse = 768,
 
69
    InvalidSchemaObjectVersion = 774,
 
70
    SingleUser = 299
 
71
  };
 
72
  
 
73
  Uint32 senderData;
 
74
  Uint32 senderRef;
 
75
  Uint32 masterNodeId;
 
76
  Uint32 errorCode;
 
77
  Uint32 errorLine; 
 
78
  Uint32 errorKey;
 
79
 
 
80
};
 
81
 
 
82
struct DropFilegroupConf {
 
83
  /**
 
84
   * Sender(s)
 
85
   */
 
86
  friend class Dbdict;
 
87
  
 
88
  /**
 
89
   * Sender(s) / Reciver(s)
 
90
   */
 
91
  friend class Ndbcntr;
 
92
  friend class NdbDictInterface;
 
93
  
 
94
  /**
 
95
   * For printing
 
96
   */
 
97
  friend bool printDROP_FILEGROUP_CONF(FILE*, const Uint32*, Uint32, Uint16);
 
98
  
 
99
  STATIC_CONST( SignalLength = 4 );
 
100
  STATIC_CONST( GSN = GSN_DROP_FILEGROUP_CONF );
 
101
 
 
102
  Uint32 senderData;
 
103
  Uint32 senderRef;
 
104
  Uint32 filegroupId;
 
105
  Uint32 filegroupVersion;
 
106
};
 
107
 
 
108
struct DropFileReq {
 
109
  /**
 
110
   * Sender(s) / Reciver(s)
 
111
   */
 
112
  friend class NdbDictInterface;
 
113
  friend class Dbdict;
 
114
  friend class Tsman;
 
115
 
 
116
  /**
 
117
   * For printing
 
118
   */
 
119
  friend bool printDROP_FILE_REQ(FILE*, const Uint32*, Uint32, Uint16);
 
120
  
 
121
  STATIC_CONST( SignalLength = 4 );
 
122
  STATIC_CONST( GSN = GSN_DROP_FILE_REQ );
 
123
  
 
124
  Uint32 senderData;
 
125
  Uint32 senderRef;
 
126
  Uint32 file_id;
 
127
  Uint32 file_version;
 
128
};
 
129
 
 
130
struct DropFileRef {
 
131
  /**
 
132
   * Sender(s)
 
133
   */
 
134
  friend class Dbdict;
 
135
  
 
136
  /**
 
137
   * Sender(s) / Reciver(s)
 
138
   */
 
139
  friend class Ndbcntr;
 
140
  friend class NdbDictInterface;
 
141
  
 
142
  /**
 
143
   * For printing
 
144
   */
 
145
  friend bool printDROP_FILE_REF(FILE*, const Uint32*, Uint32, Uint16);
 
146
  
 
147
  STATIC_CONST( SignalLength = 7 );
 
148
  STATIC_CONST( GSN = GSN_DROP_FILE_REF );
 
149
 
 
150
  enum ErrorCode {
 
151
    NoError = 0,
 
152
    Busy = 701,
 
153
    NotMaster = 702,
 
154
    NoSuchFile = 766,
 
155
    DropUndoFileNotSupported = 769,
 
156
    InvalidSchemaObjectVersion = 774,
 
157
    SingleUser = 299
 
158
  };
 
159
 
 
160
  Uint32 senderData;
 
161
  Uint32 senderRef;
 
162
  Uint32 masterNodeId;
 
163
  Uint32 errorCode;
 
164
  Uint32 errorLine; 
 
165
  Uint32 errorKey;
 
166
 
 
167
};
 
168
 
 
169
struct DropFileConf {
 
170
  /**
 
171
   * Sender(s)
 
172
   */
 
173
  friend class Dbdict;
 
174
  
 
175
  /**
 
176
   * Sender(s) / Reciver(s)
 
177
   */
 
178
  friend class Ndbcntr;
 
179
  friend class NdbDictInterface;
 
180
  
 
181
  /**
 
182
   * For printing
 
183
   */
 
184
  friend bool printDROP_FILE_CONF(FILE*, const Uint32*, Uint32, Uint16);
 
185
  
 
186
  STATIC_CONST( SignalLength = 4 );
 
187
  STATIC_CONST( GSN = GSN_DROP_FILE_CONF );
 
188
 
 
189
  Uint32 senderData;
 
190
  Uint32 senderRef;
 
191
  Uint32 fileId;
 
192
  Uint32 fileVersion;
 
193
};
 
194
 
 
195
#endif