MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrepDropTab.hpp
1 /*
2  Copyright (C) 2003-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 PREP_DROP_TAB_HPP
20 #define PREP_DROP_TAB_HPP
21 
22 #include "SignalData.hpp"
23 
28  friend class Dbdict;
29 
33  friend class Dbtc;
34  friend class Dblqh;
35  friend class DblqhProxy;
36  friend class Dbdih;
37  friend class DbtcProxy;
38 
39  friend bool printPREP_DROP_TAB_REQ(FILE *, const Uint32 *, Uint32, Uint16);
40 public:
41  STATIC_CONST( SignalLength = 4 );
42 
43 private:
44  Uint32 senderRef;
45  Uint32 senderData;
46  Uint32 tableId;
47  Uint32 requestType; // @see DropTabReq::RequestType
48 };
49 
54  friend class Dbtc;
55  friend class Dblqh;
56  friend class DblqhProxy;
57  friend class Dbdih;
58  friend class DbtcProxy;
59 
63  friend class Dbdict;
64 
65  friend bool printPREP_DROP_TAB_CONF(FILE *, const Uint32 *, Uint32, Uint16);
66 public:
67  STATIC_CONST( SignalLength = 3 );
68 
69 private:
70  Uint32 senderRef;
71  Uint32 senderData;
72  Uint32 tableId;
73 };
74 
79  friend class Dbtc;
80  friend class Dblqh;
81  friend class DblqhProxy;
82  friend class Dbdih;
83  friend class DbtcProxy;
84 
88  friend class Dbdict;
89 
90  friend bool printPREP_DROP_TAB_REF(FILE *, const Uint32 *, Uint32, Uint16);
91 public:
92  STATIC_CONST( SignalLength = 4 );
93 
94  enum ErrorCode {
95  OK = 0,
96  NoSuchTable = 1,
97  PrepDropInProgress = 2,
98  DropInProgress = 3,
99  InvalidTableState = 4,
100  NF_FakeErrorREF = 5
101  };
102 
103 private:
104  Uint32 senderRef;
105  Uint32 senderData;
106  Uint32 tableId;
107  Uint32 errorCode;
108 };
109 
110 #endif