MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateIndx.hpp
1 /*
2  Copyright (C) 2003, 2005-2007 MySQL AB, 2010 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 CREATE_INDX_HPP
20 #define CREATE_INDX_HPP
21 
22 #include "SignalData.hpp"
23 #include <NodeBitmask.hpp>
24 #include <signaldata/DictTabInfo.hpp>
25 
27 {
28  STATIC_CONST( SignalLength = 9 );
29  SECTION( ATTRIBUTE_LIST_SECTION = 0 );
30  SECTION( INDEX_NAME_SECTION = 1 );
31 
32  enum RequestType
33  {
34  RF_BUILD_OFFLINE = 1 << 8 // See BuildIndxReq
35  };
36 
37  Uint32 clientRef;
38  Uint32 clientData;
39  Uint32 transId;
40  Uint32 transKey;
41  Uint32 requestInfo;
42  Uint32 tableId;
43  Uint32 tableVersion;
44  Uint32 indexType;
45  Uint32 online;
46 };
47 
49  STATIC_CONST( SignalLength = 5 );
50 
51  Uint32 senderRef;
52  Uint32 clientData;
53  Uint32 transId;
54  Uint32 indexId;
55  Uint32 indexVersion;
56 };
57 
58 struct CreateIndxRef {
59  STATIC_CONST( SignalLength = 7 );
60 
61  enum ErrorCode {
62  NoError = 0,
63  Busy = 701,
64  BusyWithNR = 711,
65  NotMaster = 702,
66  IndexOnDiskAttributeError = 756,
67  TriggerNotFound = 4238,
68  TriggerExists = 4239,
69  IndexNameTooLong = 4241,
70  TooManyIndexes = 4242,
71  IndexExists = 4244,
72  AttributeNullable = 4246,
73  BadRequestType = 4247,
74  InvalidName = 4248,
75  InvalidPrimaryTable = 4249,
76  InvalidIndexType = 4250,
77  NotUnique = 4251,
78  AllocationError = 4252,
79  CreateIndexTableFailed = 4253,
80  DuplicateAttributes = 4258,
81  SingleUser = 299,
82  TableIsTemporary = 776,
83  TableIsNotTemporary = 777,
84  NoLoggingTemporaryIndex = 778
85  };
86 
87  Uint32 senderRef;
88  Uint32 clientData;
89  Uint32 transId;
90  Uint32 errorCode;
91  Uint32 errorLine;
92  Uint32 errorNodeId;
93  Uint32 masterNodeId;
94 };
95 
96 #endif