MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlterIndx.hpp
1 /*
2  Copyright (C) 2003, 2005-2007 MySQL AB, 2009 Sun Microsystems, Inc.
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 ALTER_INDX_HPP
20 #define ALTER_INDX_HPP
21 
22 #include "SignalData.hpp"
23 #include <Bitmask.hpp>
24 #include <trigger_definitions.h>
25 
26 struct AlterIndxReq {
27  STATIC_CONST( SignalLength = 7 );
28 
29  enum RequestFlag {
30  RF_BUILD_OFFLINE = 1 << 8
31  };
32 
33  Uint32 clientRef;
34  Uint32 clientData;
35  Uint32 transId;
36  Uint32 transKey;
37  Uint32 requestInfo;
38  Uint32 indexId;
39  Uint32 indexVersion;
40 };
41 
42 struct AlterIndxConf {
43  STATIC_CONST( SignalLength = 5 );
44 
45  Uint32 senderRef;
46  union { Uint32 clientData, senderData; };
47  Uint32 transId;
48  Uint32 indexId;
49  Uint32 indexVersion;
50 };
51 
52 struct AlterIndxRef {
53  enum ErrorCode {
54  NoError = 0,
55  Busy = 701,
56  NotMaster = 702,
57  IndexNotFound = 4243,
58  IndexExists = 4244,
59  BadRequestType = 4247,
60  NotAnIndex = 4254,
61  BadState = 4347,
62  Inconsistency = 4348,
63  InvalidIndexVersion = 241
64  };
65 
66  STATIC_CONST( SignalLength = 9 );
67 
68  Uint32 senderRef;
69  union { Uint32 clientData, senderData; };
70  Uint32 transId;
71  Uint32 indexId;
72  Uint32 indexVersion;
73  Uint32 errorCode;
74  Uint32 errorLine;
75  Uint32 errorNodeId;
76  Uint32 masterNodeId;
77 };
78 
79 #endif