MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlterIndxImpl.hpp
1 /* Copyright (C) 2007, 2008 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 #ifndef ALTER_INDX_IMPL_HPP
17 #define ALTER_INDX_IMPL_HPP
18 
19 #include "SignalData.hpp"
20 
22  enum RequestType {
23  AlterIndexOnline = 1,
24  AlterIndexOffline = 2,
25  AlterIndexAddPartition = 3,
26  AlterIndexBuilding = 4
27  };
28 
29  STATIC_CONST( SignalLength = 8 );
30 
31  Uint32 senderRef;
32  Uint32 senderData;
33  Uint32 requestType;
34  Uint32 tableId;
35  Uint32 tableVersion;
36  Uint32 indexId;
37  Uint32 indexVersion;
38  Uint32 indexType;
39 };
40 
42  STATIC_CONST( SignalLength = 2 );
43 
44  Uint32 senderRef;
45  Uint32 senderData;
46 };
47 
49  enum ErrorCode {
50  NoError = 0,
51  InvalidIndexVersion = 241,
52  Busy = 701,
53  BusyWithNR = 711,
54  NotMaster = 702,
55  IndexNotFound = 4243,
56  BadRequestType = 4247,
57  InvalidName = 4248,
58  NotAnIndex = 4254,
59  InconsistentTC = 292
60  };
61 
62  STATIC_CONST( SignalLength = 6 );
63 
64  Uint32 senderRef;
65  Uint32 senderData;
66  Uint32 errorCode;
67  Uint32 errorLine;
68  Uint32 errorNodeId;
69  Uint32 masterNodeId;
70 };
71 
72 #endif