1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
19
#include "SignalData.hpp"
20
#include <NodeBitmask.hpp>
26
friend bool printDROP_INDX_REQ(FILE*, const Uint32*, Uint32, Uint16);
32
RT_DICT_PREPARE = 1 << 4,
33
RT_DICT_COMMIT = 0xC << 4,
34
RT_DICT_ABORT = 0xF << 4,
37
STATIC_CONST( SignalLength = 6 );
40
Uint32 m_connectionPtr;
45
Uint32 m_indexVersion;
50
Uint32 getConnectionPtr() const {
51
return m_connectionPtr;
53
void setConnectionPtr(Uint32 val) {
54
m_connectionPtr = val;
56
Uint32 getUserRef() const {
59
void setUserRef(Uint32 val) {
62
DropIndxReq::RequestType getRequestType() const {
63
const Uint32 val = BitmaskImpl::getField(1, &m_requestInfo, 0, 16);
64
return (DropIndxReq::RequestType)val;
66
void setRequestType(DropIndxReq::RequestType val) {
67
m_requestInfo = (Uint32)val;
69
Uint32 getRequestFlag() const {
70
return BitmaskImpl::getField(1, &m_requestInfo, 16, 16);
72
void addRequestFlag(Uint32 val) {
73
val |= BitmaskImpl::getField(1, &m_requestInfo, 16, 16);
74
BitmaskImpl::setField(1, &m_requestInfo, 16, 16, val);
76
Uint32 getTableId() const {
79
void setTableId(Uint32 val) {
82
Uint32 getIndexId() const {
85
void setIndexId(Uint32 val) {
88
Uint32 getIndexVersion() const {
89
return m_indexVersion;
91
void setIndexVersion(Uint32 val) {
94
Uint32 getOpKey() const {
97
void setOpKey(Uint32 val) {
106
friend bool printDROP_INDX_CONF(FILE*, const Uint32*, Uint32, Uint16);
109
STATIC_CONST( InternalLength = 3 );
110
STATIC_CONST( SignalLength = 6 );
113
Uint32 m_connectionPtr;
115
Uint32 m_requestInfo;
118
Uint32 m_indexVersion;
121
Uint32 getConnectionPtr() const {
122
return m_connectionPtr;
124
void setConnectionPtr(Uint32 val) {
125
m_connectionPtr = val;
127
Uint32 getUserRef() const {
130
void setUserRef(Uint32 val) {
133
DropIndxReq::RequestType getRequestType() const {
134
return (DropIndxReq::RequestType)m_requestInfo;
136
void setRequestType(DropIndxReq::RequestType val) {
139
Uint32 getTableId() const {
142
void setTableId(Uint32 val) {
145
Uint32 getIndexId() const {
148
void setIndexId(Uint32 val) {
151
Uint32 getIndexVersion() const {
152
return m_indexVersion;
154
void setIndexVersion(Uint32 val) {
155
m_indexVersion = val;
163
friend bool printDROP_INDX_REF(FILE*, const Uint32*, Uint32, Uint16);
168
InvalidIndexVersion = 241,
172
IndexNotFound = 4243,
173
BadRequestType = 4247,
178
STATIC_CONST( SignalLength = DropIndxConf::SignalLength + 3 );
182
//Uint32 m_connectionPtr;
183
//Uint32 m_requestInfo;
186
//Uint32 m_indexVersion;
194
DropIndxConf* getConf() {
197
const DropIndxConf* getConf() const {
200
Uint32 getConnectionPtr() const {
201
return m_conf.getConnectionPtr();
203
void setConnectionPtr(Uint32 val) {
204
m_conf.setConnectionPtr(val);
206
Uint32 getUserRef() const {
207
return m_conf.getUserRef();
209
void setUserRef(Uint32 val) {
210
m_conf.setUserRef(val);
212
DropIndxReq::RequestType getRequestType() const {
213
return m_conf.getRequestType();
215
void setRequestType(DropIndxReq::RequestType val) {
216
m_conf.setRequestType(val);
218
Uint32 getTableId() const {
219
return m_conf.getTableId();
221
void setTableId(Uint32 val) {
222
m_conf.setTableId(val);
224
Uint32 getIndexId() const {
225
return m_conf.getIndexId();
227
void setIndexId(Uint32 val) {
228
m_conf.setIndexId(val);
230
Uint32 getIndexVersion() const {
231
return m_conf.getIndexVersion();
233
void setIndexVersion(Uint32 val) {
234
m_conf.setIndexVersion(val);
236
DropIndxRef::ErrorCode getErrorCode() const {
237
return (DropIndxRef::ErrorCode)m_errorCode;
239
void setErrorCode(DropIndxRef::ErrorCode val) {
240
m_errorCode = (Uint32)val;
242
Uint32 getErrorLine() const {
245
void setErrorLine(Uint32 val) {
248
Uint32 getErrorNode() const {
251
void setErrorNode(Uint32 val) {