1 /*
2    Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License, version 2.0,
6    as published by the Free Software Foundation.
7 
8    This program is also distributed with certain software (including
9    but not limited to OpenSSL) that is licensed under separate terms,
10    as designated in a particular file or component or in included license
11    documentation.  The authors of MySQL hereby grant you an additional
12    permission to link the program and your derivative works with the
13    separately licensed software that they have included with MySQL.
14 
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License, version 2.0, for more details.
19 
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
23 */
24 
25 #ifndef DROP_TABLE_HPP
26 #define DROP_TABLE_HPP
27 
28 #include "SignalData.hpp"
29 
30 #define JAM_FILE_ID 176
31 
32 
33 struct DropTableReq {
34   STATIC_CONST( SignalLength = 7 );
35 
36   union { Uint32 clientRef, senderRef; };
37   union { Uint32 clientData, senderData; };
38   Uint32 requestInfo;
39   Uint32 transId;
40   Uint32 transKey;
41   Uint32 tableId;
42   Uint32 tableVersion;
43 };
44 
45 struct DropTableConf {
46   STATIC_CONST( SignalLength = 5 );
47 
48   Uint32 senderRef;
49   union { Uint32 clientData, senderData; };
50   Uint32 transId;
51   Uint32 tableId;
52   Uint32 tableVersion;
53 };
54 
55 struct DropTableRef {
56   STATIC_CONST( SignalLength = 9 );
57 
58   Uint32 senderRef;
59   union { Uint32 clientData, senderData; };
60   Uint32 transId;
61   Uint32 tableId;
62   Uint32 tableVersion;
63   Uint32 errorCode;
64   Uint32 errorLine;
65   Uint32 errorNodeId;
66   Uint32 masterNodeId;
67 
68   enum ErrorCode {
69     Busy = 701,
70     BusyWithNR = 711,
71     NotMaster = 702,
72     NoSuchTable         = 709,
73     InvalidTableVersion = 241,
74     DropInProgress      = 283,
75     NoDropTableRecordAvailable = 1229,
76     BackupInProgress = 761,
77     SingleUser = 299,
78     ActiveSchemaTrans = 785
79   };
80 };
81 
82 
83 #undef JAM_FILE_ID
84 
85 #endif
86