1 /* Copyright (c) 2007, 2021, Oracle and/or its affiliates. 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, version 2.0, 5 as published by the Free Software Foundation. 6 7 This program is also distributed with certain software (including 8 but not limited to OpenSSL) that is licensed under separate terms, 9 as designated in a particular file or component or in included license 10 documentation. The authors of MySQL hereby grant you an additional 11 permission to link the program and your derivative works with the 12 separately licensed software that they have included with MySQL. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License, version 2.0, for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ 22 23 #ifndef ALTER_INDX_IMPL_HPP 24 #define ALTER_INDX_IMPL_HPP 25 26 #include "SignalData.hpp" 27 28 #define JAM_FILE_ID 209 29 30 31 struct AlterIndxImplReq { 32 enum RequestType { 33 AlterIndexOnline = 1, 34 AlterIndexOffline = 2, 35 AlterIndexAddPartition = 3, 36 AlterIndexBuilding = 4 37 }; 38 39 STATIC_CONST( SignalLength = 8 ); 40 41 Uint32 senderRef; 42 Uint32 senderData; 43 Uint32 requestType; 44 Uint32 tableId; 45 Uint32 tableVersion; 46 Uint32 indexId; 47 Uint32 indexVersion; 48 Uint32 indexType; 49 }; 50 51 struct AlterIndxImplConf { 52 STATIC_CONST( SignalLength = 2 ); 53 54 Uint32 senderRef; 55 Uint32 senderData; 56 }; 57 58 struct AlterIndxImplRef { 59 enum ErrorCode { 60 NoError = 0, 61 InvalidIndexVersion = 241, 62 Busy = 701, 63 BusyWithNR = 711, 64 NotMaster = 702, 65 IndexNotFound = 4243, 66 BadRequestType = 4247, 67 InvalidName = 4248, 68 NotAnIndex = 4254, 69 InconsistentTC = 292 70 }; 71 72 STATIC_CONST( SignalLength = 6 ); 73 74 Uint32 senderRef; 75 Uint32 senderData; 76 Uint32 errorCode; 77 Uint32 errorLine; 78 Uint32 errorNodeId; 79 Uint32 masterNodeId; 80 }; 81 82 83 #undef JAM_FILE_ID 84 85 #endif 86