mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
2ff26b97f2
storage/ndb/include/debugger/EventLogger.hpp: Import patch ndb-wl2325.patch storage/ndb/include/kernel/GlobalSignalNumbers.h: Import patch ndb-wl2325.patch storage/ndb/include/kernel/NodeInfo.hpp: Import patch ndb-wl2325.patch storage/ndb/include/kernel/signaldata/AlterTab.hpp: Import patch ndb-wl2325.patch storage/ndb/include/kernel/signaldata/CreateEvnt.hpp: Import patch ndb-wl2325.patch storage/ndb/include/kernel/signaldata/CreateTab.hpp: Import patch ndb-wl2325.patch storage/ndb/include/kernel/signaldata/DropTab.hpp: Import patch ndb-wl2325.patch storage/ndb/include/kernel/signaldata/EventReport.hpp: Import patch ndb-wl2325.patch storage/ndb/include/kernel/signaldata/SumaImpl.hpp: Import patch ndb-wl2325.patch storage/ndb/include/mgmapi/mgmapi.h: Import patch ndb-wl2325.patch storage/ndb/include/mgmapi/mgmapi_config_parameters.h: Import patch ndb-wl2325.patch storage/ndb/include/mgmapi/ndb_logevent.h: Import patch ndb-wl2325.patch storage/ndb/include/ndbapi/Ndb.hpp: Import patch ndb-wl2325.patch storage/ndb/include/ndbapi/NdbDictionary.hpp: Import patch ndb-wl2325.patch storage/ndb/include/ndbapi/NdbError.hpp: Import patch ndb-wl2325.patch storage/ndb/include/ndbapi/NdbEventOperation.hpp: Import patch ndb-wl2325.patch storage/ndb/include/ndbapi/ndb_cluster_connection.hpp: Import patch ndb-wl2325.patch storage/ndb/include/ndbapi/ndberror.h: Import patch ndb-wl2325.patch storage/ndb/ndbapi-examples/Makefile: Import patch ndb-wl2325.patch storage/ndb/src/common/debugger/EventLogger.cpp: Import patch ndb-wl2325.patch storage/ndb/src/common/debugger/Makefile.am: Import patch ndb-wl2325.patch storage/ndb/src/common/debugger/signaldata/SignalNames.cpp: Import patch ndb-wl2325.patch storage/ndb/src/common/debugger/signaldata/SumaImpl.cpp: Import patch ndb-wl2325.patch storage/ndb/src/common/mgmcommon/ConfigRetriever.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/SimBlockList.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbtup/DbtupMeta.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/ndbcntr/Ndbcntr.hpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrInit.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrSysTable.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/suma/Suma.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/suma/Suma.hpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/suma/SumaInit.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/trix/Trix.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/blocks/trix/Trix.hpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/vm/Configuration.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/vm/SimulatedBlock.cpp: Import patch ndb-wl2325.patch storage/ndb/src/kernel/vm/SimulatedBlock.hpp: Import patch ndb-wl2325.patch storage/ndb/src/mgmapi/mgmapi.cpp: Import patch ndb-wl2325.patch storage/ndb/src/mgmapi/ndb_logevent.cpp: Import patch ndb-wl2325.patch storage/ndb/src/mgmclient/CommandInterpreter.cpp: Import patch ndb-wl2325.patch storage/ndb/src/mgmsrv/MgmtSrvr.cpp: Import patch ndb-wl2325.patch storage/ndb/src/mgmsrv/MgmtSrvr.hpp: Import patch ndb-wl2325.patch storage/ndb/src/mgmsrv/Services.cpp: Import patch ndb-wl2325.patch storage/ndb/src/mgmsrv/Services.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/ClusterMgr.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/ClusterMgr.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/Ndb.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbDictionary.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbEventOperation.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbImpl.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/NdbWaiter.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/Ndberr.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/Ndbif.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/Ndbinit.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/ObjectMap.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/TransporterFacade.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/TransporterFacade.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/ndb_cluster_connection.cpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/ndb_cluster_connection_impl.hpp: Import patch ndb-wl2325.patch storage/ndb/src/ndbapi/ndberror.c: Import patch ndb-wl2325.patch storage/ndb/test/include/HugoOperations.hpp: Import patch ndb-wl2325.patch storage/ndb/test/include/HugoTransactions.hpp: Import patch ndb-wl2325.patch storage/ndb/test/include/NDBT_Table.hpp: Import patch ndb-wl2325.patch storage/ndb/test/include/NDBT_Test.hpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/Makefile.am: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/Bank.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/Bank.hpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/bankCreator.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/bankMakeGL.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/bankSumAccounts.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/bankTimer.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/bankTransactionMaker.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/bankValidateAllGLs.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bank/testBank.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bench/asyncGenerator.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/bench/ndb_schema.hpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/test_event.cpp: Import patch ndb-wl2325.patch storage/ndb/test/ndbapi/test_event_multi_table.cpp: Import patch ndb-wl2325.patch storage/ndb/test/run-test/Makefile.am: Import patch ndb-wl2325.patch storage/ndb/test/run-test/daily-devel-tests.txt: Import patch ndb-wl2325.patch storage/ndb/test/src/HugoOperations.cpp: Import patch ndb-wl2325.patch storage/ndb/test/src/HugoTransactions.cpp: Import patch ndb-wl2325.patch storage/ndb/test/src/NDBT_ResultRow.cpp: Import patch ndb-wl2325.patch storage/ndb/test/src/NDBT_Tables.cpp: Import patch ndb-wl2325.patch storage/ndb/test/src/NDBT_Test.cpp: Import patch ndb-wl2325.patch storage/ndb/test/src/UtilTransactions.cpp: Import patch ndb-wl2325.patch storage/ndb/test/tools/Makefile.am: Import patch ndb-wl2325.patch
524 lines
12 KiB
C++
524 lines
12 KiB
C++
/* Copyright (C) 2003 MySQL AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
#ifndef CREATE_EVNT_HPP
|
|
#define CREATE_EVNT_HPP
|
|
|
|
#include <ndberror.h>
|
|
#include "SignalData.hpp"
|
|
#include <NodeBitmask.hpp>
|
|
#include <signaldata/DictTabInfo.hpp>
|
|
|
|
/**
|
|
* DropEvntReq.
|
|
*/
|
|
class DropEvntReq {
|
|
friend bool printDROP_EVNT_REQ(FILE*, const Uint32*, Uint32, Uint16);
|
|
|
|
public:
|
|
STATIC_CONST( SignalLength = 2 );
|
|
SECTION( EVENT_NAME_SECTION = 0 );
|
|
|
|
union { // user block reference
|
|
Uint32 senderRef;
|
|
Uint32 m_userRef;
|
|
};
|
|
union {
|
|
Uint32 senderData;
|
|
Uint32 m_userData; // user
|
|
};
|
|
|
|
Uint32 getUserRef() const {
|
|
return m_userRef;
|
|
}
|
|
void setUserRef(Uint32 val) {
|
|
m_userRef = val;
|
|
}
|
|
Uint32 getUserData() const {
|
|
return m_userData;
|
|
}
|
|
void setUserData(Uint32 val) {
|
|
m_userData = val;
|
|
}
|
|
};
|
|
|
|
/**
|
|
* DropEvntConf.
|
|
*/
|
|
class DropEvntConf {
|
|
friend bool printDROP_EVNT_CONF(FILE*, const Uint32*, Uint32, Uint16);
|
|
|
|
public:
|
|
STATIC_CONST( SignalLength = 2 );
|
|
|
|
union { // user block reference
|
|
Uint32 senderRef;
|
|
Uint32 m_userRef;
|
|
};
|
|
union {
|
|
Uint32 senderData;
|
|
Uint32 m_userData; // user
|
|
};
|
|
|
|
Uint32 getUserRef() const {
|
|
return m_userRef;
|
|
}
|
|
void setUserRef(Uint32 val) {
|
|
m_userRef = val;
|
|
}
|
|
Uint32 getUserData() const {
|
|
return m_userData;
|
|
}
|
|
void setUserData(Uint32 val) {
|
|
m_userData = val;
|
|
}
|
|
};
|
|
|
|
/**
|
|
* DropEvntRef.
|
|
*/
|
|
class DropEvntRef {
|
|
friend bool printDROP_EVNT_REF(FILE*, const Uint32*, Uint32, Uint16);
|
|
|
|
public:
|
|
enum ErrorCode {
|
|
NoError = 0,
|
|
Undefined = 1,
|
|
NF_FakeErrorREF = 11,
|
|
Busy = 701
|
|
};
|
|
#if 0
|
|
enum ErrorCode {
|
|
NoError = 0,
|
|
Undefined = 1,
|
|
UndefinedTCError = 2,
|
|
NF_FakeErrorREF = 11,
|
|
Busy = 701,
|
|
NotMaster = 702,
|
|
SeizeError = 703,
|
|
EventNotFound = 4710,
|
|
EventNameTooLong = 4241,
|
|
TooManyEvents = 4242,
|
|
BadRequestType = 4247,
|
|
InvalidName = 4248,
|
|
InvalidPrimaryTable = 4249,
|
|
InvalidEventType = 4250,
|
|
NotUnique = 4251,
|
|
AllocationError = 4252,
|
|
CreateEventTableFailed = 4253,
|
|
InvalidAttributeOrder = 4255,
|
|
Temporary = 0x1 << 16
|
|
};
|
|
#endif
|
|
STATIC_CONST( SignalLength = 5 );
|
|
|
|
union { // user block reference
|
|
Uint32 senderRef;
|
|
Uint32 m_userRef;
|
|
};
|
|
union {
|
|
Uint32 senderData;
|
|
Uint32 m_userData; // user
|
|
};
|
|
union {
|
|
Uint32 errorCode;
|
|
Uint32 m_errorCode;
|
|
};
|
|
Uint32 m_errorLine;
|
|
Uint32 m_errorNode;
|
|
#if 0
|
|
bool isTemporary() const
|
|
{ return (errorCode & Temporary) > 0; }
|
|
|
|
void setTemporary()
|
|
{ errorCode |= Temporary; }
|
|
|
|
ErrorCode setTemporary(ErrorCode ec)
|
|
{ return (ErrorCode) (errorCode = ((Uint32) ec | (Uint32)Temporary)); }
|
|
#endif
|
|
Uint32 getUserRef() const {
|
|
return m_userRef;
|
|
}
|
|
void setUserRef(Uint32 val) {
|
|
m_userRef = val;
|
|
}
|
|
Uint32 getUserData() const {
|
|
return m_userData;
|
|
}
|
|
void setUserData(Uint32 val) {
|
|
m_userData = val;
|
|
}
|
|
Uint32 getErrorCode() const {
|
|
return m_errorCode;
|
|
}
|
|
void setErrorCode(Uint32 val) {
|
|
m_errorCode = val;
|
|
}
|
|
Uint32 getErrorLine() const {
|
|
return m_errorLine;
|
|
}
|
|
void setErrorLine(Uint32 val) {
|
|
m_errorLine = val;
|
|
}
|
|
Uint32 getErrorNode() const {
|
|
return m_errorNode;
|
|
}
|
|
void setErrorNode(Uint32 val) {
|
|
m_errorNode = val;
|
|
}
|
|
};
|
|
|
|
/**
|
|
* CreateEvntReq.
|
|
*/
|
|
struct CreateEvntReq {
|
|
friend bool printCREATE_EVNT_REQ(FILE*, const Uint32*, Uint32, Uint16);
|
|
|
|
enum RequestType {
|
|
RT_UNDEFINED = 0,
|
|
RT_USER_CREATE = 1,
|
|
RT_USER_GET = 2,
|
|
|
|
RT_DICT_AFTER_GET = 0x1 << 4
|
|
// RT_DICT_MASTER = 0x2 << 4,
|
|
|
|
// RT_DICT_COMMIT = 0xC << 4,
|
|
// RT_DICT_ABORT = 0xF << 4,
|
|
// RT_TC = 5 << 8
|
|
};
|
|
STATIC_CONST( SignalLengthGet = 3 );
|
|
STATIC_CONST( SignalLengthCreate = 6+MAXNROFATTRIBUTESINWORDS );
|
|
STATIC_CONST( SignalLength = 8+MAXNROFATTRIBUTESINWORDS );
|
|
// SECTION( ATTRIBUTE_LIST_SECTION = 0 );
|
|
SECTION( EVENT_NAME_SECTION = 0 );
|
|
|
|
union {
|
|
Uint32 m_userRef; // user block reference
|
|
Uint32 senderRef; // user block reference
|
|
};
|
|
union {
|
|
Uint32 m_userData; // user
|
|
Uint32 senderData; // user
|
|
};
|
|
Uint32 m_requestInfo;
|
|
Uint32 m_tableId; // table to event
|
|
Uint32 m_tableVersion; // table version
|
|
AttributeMask::Data m_attrListBitmask;
|
|
Uint32 m_eventType; // from DictTabInfo::TableType
|
|
Uint32 m_eventId; // event table id set by DICT/SUMA
|
|
Uint32 m_eventKey; // event table key set by DICT/SUMA
|
|
|
|
Uint32 getUserRef() const {
|
|
return m_userRef;
|
|
}
|
|
void setUserRef(Uint32 val) {
|
|
m_userRef = val;
|
|
}
|
|
Uint32 getUserData() const {
|
|
return m_userData;
|
|
}
|
|
void setUserData(Uint32 val) {
|
|
m_userData = val;
|
|
}
|
|
CreateEvntReq::RequestType getRequestType() const {
|
|
const Uint32 val = BitmaskImpl::getField(1, &m_requestInfo, 0, 16);
|
|
return (CreateEvntReq::RequestType)val;
|
|
}
|
|
void setRequestType(CreateEvntReq::RequestType val) {
|
|
m_requestInfo = (Uint32)val;
|
|
}
|
|
Uint32 getRequestFlag() const {
|
|
return BitmaskImpl::getField(1, &m_requestInfo, 16, 16);
|
|
};
|
|
void addRequestFlag(Uint32 val) {
|
|
val |= BitmaskImpl::getField(1, &m_requestInfo, 16, 16);
|
|
BitmaskImpl::setField(1, &m_requestInfo, 16, 16, val);
|
|
};
|
|
Uint32 getTableId() const {
|
|
return m_tableId;
|
|
}
|
|
void setTableId(Uint32 val) {
|
|
m_tableId = val;
|
|
}
|
|
Uint32 getTableVersion() const {
|
|
return m_tableVersion;
|
|
}
|
|
void setTableVersion(Uint32 val) {
|
|
m_tableVersion = val;
|
|
}
|
|
AttributeMask getAttrListBitmask() const {
|
|
AttributeMask tmp;
|
|
tmp.assign(m_attrListBitmask);
|
|
return tmp;
|
|
}
|
|
void setAttrListBitmask(const AttributeMask & val) {
|
|
AttributeMask::assign(m_attrListBitmask.data, val);
|
|
}
|
|
Uint32 getEventType() const {
|
|
return m_eventType;
|
|
}
|
|
void setEventType(Uint32 val) {
|
|
m_eventType = (Uint32)val;
|
|
}
|
|
Uint32 getEventId() const {
|
|
return m_eventId;
|
|
}
|
|
void setEventId(Uint32 val) {
|
|
m_eventId = val;
|
|
}
|
|
Uint32 getEventKey() const {
|
|
return m_eventKey;
|
|
}
|
|
void setEventKey(Uint32 val) {
|
|
m_eventKey = val;
|
|
}
|
|
};
|
|
|
|
/**
|
|
* CreateEvntConf.
|
|
*/
|
|
class CreateEvntConf {
|
|
friend bool printCREATE_EVNT_CONF(FILE*, const Uint32*, Uint32, Uint16);
|
|
|
|
public:
|
|
// STATIC_CONST( InternalLength = 3 );
|
|
STATIC_CONST( SignalLength = 8+MAXNROFATTRIBUTESINWORDS );
|
|
|
|
union {
|
|
Uint32 m_userRef; // user block reference
|
|
Uint32 senderRef; // user block reference
|
|
};
|
|
union {
|
|
Uint32 m_userData; // user
|
|
Uint32 senderData; // user
|
|
};
|
|
Uint32 m_requestInfo;
|
|
Uint32 m_tableId;
|
|
Uint32 m_tableVersion; // table version
|
|
AttributeMask m_attrListBitmask;
|
|
Uint32 m_eventType;
|
|
Uint32 m_eventId;
|
|
Uint32 m_eventKey;
|
|
|
|
Uint32 getUserRef() const {
|
|
return m_userRef;
|
|
}
|
|
void setUserRef(Uint32 val) {
|
|
m_userRef = val;
|
|
}
|
|
Uint32 getUserData() const {
|
|
return m_userData;
|
|
}
|
|
void setUserData(Uint32 val) {
|
|
m_userData = val;
|
|
}
|
|
CreateEvntReq::RequestType getRequestType() const {
|
|
return (CreateEvntReq::RequestType)m_requestInfo;
|
|
}
|
|
void setRequestType(CreateEvntReq::RequestType val) {
|
|
m_requestInfo = (Uint32)val;
|
|
}
|
|
Uint32 getTableId() const {
|
|
return m_tableId;
|
|
}
|
|
void setTableId(Uint32 val) {
|
|
m_tableId = val;
|
|
}
|
|
Uint32 getTableVersion() const {
|
|
return m_tableVersion;
|
|
}
|
|
void setTableVersion(Uint32 val) {
|
|
m_tableVersion = val;
|
|
}
|
|
AttributeMask getAttrListBitmask() const {
|
|
return m_attrListBitmask;
|
|
}
|
|
void setAttrListBitmask(const AttributeMask & val) {
|
|
m_attrListBitmask = val;
|
|
}
|
|
Uint32 getEventType() const {
|
|
return m_eventType;
|
|
}
|
|
void setEventType(Uint32 val) {
|
|
m_eventType = (Uint32)val;
|
|
}
|
|
Uint32 getEventId() const {
|
|
return m_eventId;
|
|
}
|
|
void setEventId(Uint32 val) {
|
|
m_eventId = val;
|
|
}
|
|
Uint32 getEventKey() const {
|
|
return m_eventKey;
|
|
}
|
|
void setEventKey(Uint32 val) {
|
|
m_eventKey = val;
|
|
}
|
|
};
|
|
|
|
/**
|
|
* CreateEvntRef.
|
|
*/
|
|
struct CreateEvntRef {
|
|
friend class SafeCounter;
|
|
friend bool printCREATE_EVNT_REF(FILE*, const Uint32*, Uint32, Uint16);
|
|
|
|
STATIC_CONST( SignalLength = 11 );
|
|
enum ErrorCode {
|
|
NoError = 0,
|
|
Undefined = 1,
|
|
NF_FakeErrorREF = 11,
|
|
Busy = 701
|
|
};
|
|
#if 0
|
|
enum ErrorCode {
|
|
NoError = 0,
|
|
Undefined = 1,
|
|
UndefinedTCError = 2,
|
|
NF_FakeErrorREF = 11,
|
|
Busy = 701,
|
|
NotMaster = 702,
|
|
SeizeError = 703,
|
|
TooManyEvents = 4707,
|
|
EventNameTooLong = 4708,
|
|
EventNameExists = 746,
|
|
EventNotFound = 4731,
|
|
AttributeNullable = 4246,
|
|
BadRequestType = 4247,
|
|
InvalidName = 4248,
|
|
InvalidPrimaryTable = 4249,
|
|
InvalidEventType = 4250,
|
|
NotUnique = 4251,
|
|
AllocationError = 4252,
|
|
CreateEventTableFailed = 4711,
|
|
InvalidAttributeOrder = 4255,
|
|
Temporary = 0x1 << 16
|
|
};
|
|
bool isTemporary() const;
|
|
void setTemporary();
|
|
ErrorCode setTemporary(ErrorCode ec);
|
|
static ErrorCode makeTemporary(ErrorCode ec);
|
|
#endif
|
|
|
|
union {
|
|
Uint32 m_userRef; // user block reference
|
|
Uint32 senderRef; // user block reference
|
|
};
|
|
union {
|
|
Uint32 m_userData; // user
|
|
Uint32 senderData; // user
|
|
};
|
|
|
|
Uint32 m_requestInfo;
|
|
Uint32 m_tableId;
|
|
Uint32 m_tableVersion; // table version
|
|
Uint32 m_eventType;
|
|
Uint32 m_eventId;
|
|
Uint32 m_eventKey;
|
|
Uint32 errorCode;
|
|
Uint32 m_errorLine;
|
|
Uint32 m_errorNode;
|
|
|
|
#if 0
|
|
CreateEvntConf* getConf() {
|
|
return &m_conf;
|
|
}
|
|
const CreateEvntConf* getConf() const {
|
|
return &m_conf;
|
|
}
|
|
#endif
|
|
Uint32 getUserRef() const {
|
|
return m_userRef;
|
|
}
|
|
void setUserRef(Uint32 val) {
|
|
m_userRef = val;
|
|
}
|
|
Uint32 getUserData() const {
|
|
return m_userData;
|
|
}
|
|
void setUserData(Uint32 val) {
|
|
m_userData = val;
|
|
}
|
|
CreateEvntReq::RequestType getRequestType() const {
|
|
return (CreateEvntReq::RequestType)m_requestInfo;
|
|
}
|
|
void setRequestType(CreateEvntReq::RequestType val) {
|
|
m_requestInfo = (Uint32)val;
|
|
}
|
|
Uint32 getTableId() const {
|
|
return m_tableId;
|
|
}
|
|
void setTableId(Uint32 val) {
|
|
m_tableId = val;
|
|
}
|
|
Uint32 getTableVersion() const {
|
|
return m_tableVersion;
|
|
}
|
|
void setTableVersion(Uint32 val) {
|
|
m_tableVersion = val;
|
|
}
|
|
|
|
Uint32 getEventType() const {
|
|
return m_eventType;
|
|
}
|
|
void setEventType(Uint32 val) {
|
|
m_eventType = (Uint32)val;
|
|
}
|
|
Uint32 getEventId() const {
|
|
return m_eventId;
|
|
}
|
|
void setEventId(Uint32 val) {
|
|
m_eventId = val;
|
|
}
|
|
Uint32 getEventKey() const {
|
|
return m_eventKey;
|
|
}
|
|
void setEventKey(Uint32 val) {
|
|
m_eventKey = val;
|
|
}
|
|
|
|
Uint32 getErrorCode() const {
|
|
return errorCode;
|
|
}
|
|
void setErrorCode(Uint32 val) {
|
|
errorCode = val;
|
|
}
|
|
Uint32 getErrorLine() const {
|
|
return m_errorLine;
|
|
}
|
|
void setErrorLine(Uint32 val) {
|
|
m_errorLine = val;
|
|
}
|
|
Uint32 getErrorNode() const {
|
|
return m_errorNode;
|
|
}
|
|
void setErrorNode(Uint32 val) {
|
|
m_errorNode = val;
|
|
}
|
|
};
|
|
#if 0
|
|
inline bool CreateEvntRef::isTemporary() const
|
|
{ return (errorCode & CreateEvntRef::Temporary) > 0; }
|
|
inline void CreateEvntRef::setTemporary()
|
|
{ errorCode |= CreateEvntRef::Temporary; }
|
|
inline CreateEvntRef::ErrorCode CreateEvntRef::setTemporary(ErrorCode ec)
|
|
{ return (CreateEvntRef::ErrorCode)
|
|
(errorCode = ((Uint32) ec | (Uint32)CreateEvntRef::Temporary)); }
|
|
inline CreateEvntRef::ErrorCode CreateEvntRef::makeTemporary(ErrorCode ec)
|
|
{ return (CreateEvntRef::ErrorCode)
|
|
( (Uint32) ec | (Uint32)CreateEvntRef::Temporary ); }
|
|
#endif
|
|
#endif
|