1 /* Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. 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_NODEGROUP_HPP 24 #define DROP_NODEGROUP_HPP 25 26 #include "SignalData.hpp" 27 28 #define JAM_FILE_ID 74 29 30 31 struct DropNodegroupReq { 32 /** 33 * Sender(s) / Reciver(s) 34 */ 35 friend class NdbDictInterface; 36 friend class Dbdict; 37 38 /** 39 * For printing 40 */ 41 friend bool printDROP_NODEGROUP_REQ(FILE*, const Uint32*, Uint32, Uint16); 42 43 STATIC_CONST( SignalLength = 6 ); 44 45 union { 46 Uint32 senderData; 47 Uint32 clientData; 48 }; 49 union { 50 Uint32 senderRef; 51 Uint32 clientRef; 52 }; 53 Uint32 nodegroupId; 54 Uint32 requestInfo; 55 Uint32 transId; 56 Uint32 transKey; 57 }; 58 59 struct DropNodegroupRef { 60 /** 61 * Sender(s) 62 */ 63 friend class Dbdict; 64 65 /** 66 * Sender(s) / Reciver(s) 67 */ 68 friend class NdbDictInterface; 69 70 /** 71 * For printing 72 */ 73 friend bool printDROP_NODEGROUP_REF(FILE*, const Uint32*, Uint32, Uint16); 74 75 STATIC_CONST( SignalLength = 7 ); 76 77 enum ErrorCode { 78 NoError = 0, 79 Busy = 701, 80 NotMaster = 702, 81 SingleUser = 299, 82 NoSuchNodegroup = -1, 83 NodegroupInUse = -2 84 }; 85 86 Uint32 senderData; 87 Uint32 senderRef; 88 Uint32 masterNodeId; 89 Uint32 errorCode; 90 Uint32 errorLine; 91 Uint32 errorNodeId; 92 Uint32 transId; 93 }; 94 95 struct DropNodegroupConf { 96 /** 97 * Sender(s) 98 */ 99 friend class Dbdict; 100 101 /** 102 * Sender(s) / Reciver(s) 103 */ 104 friend class NdbDictInterface; 105 106 /** 107 * For printing 108 */ 109 friend bool printDROP_NODEGROUP_CONF(FILE*, const Uint32*, Uint32, Uint16); 110 111 STATIC_CONST( SignalLength = 3 ); 112 113 Uint32 senderData; 114 Uint32 senderRef; 115 Uint32 transId; 116 }; 117 118 119 #undef JAM_FILE_ID 120 121 #endif 122