MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropTable.hpp
1 /*
2  Copyright (C) 2003, 2005-2007 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_TABLE_HPP
20 #define DROP_TABLE_HPP
21 
22 #include "SignalData.hpp"
23 
24 struct DropTableReq {
25  STATIC_CONST( SignalLength = 7 );
26 
27  union { Uint32 clientRef, senderRef; };
28  union { Uint32 clientData, senderData; };
29  Uint32 requestInfo;
30  Uint32 transId;
31  Uint32 transKey;
32  Uint32 tableId;
33  Uint32 tableVersion;
34 };
35 
36 struct DropTableConf {
37  STATIC_CONST( SignalLength = 5 );
38 
39  Uint32 senderRef;
40  union { Uint32 clientData, senderData; };
41  Uint32 transId;
42  Uint32 tableId;
43  Uint32 tableVersion;
44 };
45 
46 struct DropTableRef {
47  STATIC_CONST( SignalLength = 9 );
48 
49  Uint32 senderRef;
50  union { Uint32 clientData, senderData; };
51  Uint32 transId;
52  Uint32 tableId;
53  Uint32 tableVersion;
54  Uint32 errorCode;
55  Uint32 errorLine;
56  Uint32 errorNodeId;
57  Uint32 masterNodeId;
58 
59  enum ErrorCode {
60  Busy = 701,
61  BusyWithNR = 711,
62  NotMaster = 702,
63  NoSuchTable = 709,
64  InvalidTableVersion = 241,
65  DropInProgress = 283,
66  NoDropTableRecordAvailable = 1229,
67  BackupInProgress = 761,
68  SingleUser = 299,
69  ActiveSchemaTrans = 785
70  };
71 };
72 
73 #endif