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 DROP_INDX_IMPL_HPP 24 #define DROP_INDX_IMPL_HPP 25 26 #include "SignalData.hpp" 27 28 #define JAM_FILE_ID 63 29 30 31 struct DropIndxImplReq { 32 STATIC_CONST( SignalLength = 7 ); 33 34 Uint32 senderRef; 35 Uint32 senderData; 36 Uint32 requestType; 37 Uint32 tableId; 38 Uint32 tableVersion; 39 Uint32 indexId; 40 Uint32 indexVersion; 41 }; 42 43 struct DropIndxImplConf { 44 STATIC_CONST( SignalLength = 2 ); 45 46 Uint32 senderRef; 47 Uint32 senderData; 48 }; 49 50 struct DropIndxImplRef { 51 enum ErrorCode { 52 NoError = 0, 53 InvalidIndexVersion = 241, 54 Busy = 701, 55 BusyWithNR = 711, 56 NotMaster = 702, 57 IndexNotFound = 4243, 58 BadRequestType = 4247, 59 InvalidName = 4248, 60 NotAnIndex = 4254, 61 InconsistentTC = 292 62 }; 63 STATIC_CONST( SignalLength = 6 ); 64 65 Uint32 senderRef; 66 Uint32 senderData; 67 Uint32 errorCode; 68 Uint32 errorLine; 69 Uint32 errorNodeId; 70 Uint32 masterNodeId; 71 }; 72 73 74 #undef JAM_FILE_ID 75 76 #endif 77