mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 00:54:30 +02:00
BUG#8786 - ndb_autodiscover, post review
More explicit naming of variables
This commit is contained in:
parent
15de06f290
commit
72127b52b3
7 changed files with 21 additions and 12 deletions
|
|
@ -201,8 +201,10 @@ private:
|
|||
//Uint32 m_indexVersion;
|
||||
Uint32 m_errorCode;
|
||||
Uint32 m_errorLine;
|
||||
Uint32 m_errorNode;
|
||||
|
||||
union {
|
||||
Uint32 m_errorNode;
|
||||
Uint32 masterNodeId; // if NotMaster
|
||||
};
|
||||
public:
|
||||
AlterIndxConf* getConf() {
|
||||
return &m_conf;
|
||||
|
|
|
|||
|
|
@ -242,9 +242,8 @@ public:
|
|||
AllocationFailure = 4252,
|
||||
InternalError = 4346
|
||||
};
|
||||
STATIC_CONST( SignalLength = BuildIndxConf::SignalLength + 1 );
|
||||
STATIC_CONST( SignalLength = BuildIndxConf::SignalLength + 2 );
|
||||
|
||||
private:
|
||||
//Uint32 m_userRef;
|
||||
//Uint32 m_connectionPtr;
|
||||
//Uint32 m_requestInfo;
|
||||
|
|
@ -253,6 +252,7 @@ private:
|
|||
//Uint32 m_indexId;
|
||||
BuildIndxConf m_conf;
|
||||
Uint32 m_errorCode;
|
||||
Uint32 masterNodeId;
|
||||
|
||||
public:
|
||||
BuildIndxConf* getConf() {
|
||||
|
|
|
|||
|
|
@ -220,8 +220,10 @@ public:
|
|||
//Uint32 m_indexVersion;
|
||||
Uint32 m_errorCode;
|
||||
Uint32 m_errorLine;
|
||||
Uint32 m_errorNode;
|
||||
|
||||
union {
|
||||
Uint32 m_errorNode;
|
||||
Uint32 masterNodeId; // If NotMaster
|
||||
};
|
||||
public:
|
||||
CreateIndxConf* getConf() {
|
||||
return &m_conf;
|
||||
|
|
|
|||
|
|
@ -311,8 +311,10 @@ private:
|
|||
//Uint32 m_triggerInfo;
|
||||
Uint32 m_errorCode;
|
||||
Uint32 m_errorLine;
|
||||
Uint32 m_errorNode;
|
||||
|
||||
union {
|
||||
Uint32 m_errorNode;
|
||||
Uint32 masterNodeId; // When NotMaster
|
||||
};
|
||||
public:
|
||||
CreateTrigConf* getConf() {
|
||||
return &m_conf;
|
||||
|
|
|
|||
|
|
@ -185,8 +185,10 @@ public:
|
|||
//Uint32 m_indexVersion;
|
||||
Uint32 m_errorCode;
|
||||
Uint32 m_errorLine;
|
||||
Uint32 m_errorNode;
|
||||
|
||||
union {
|
||||
Uint32 m_errorNode;
|
||||
Uint32 masterNodeId;
|
||||
};
|
||||
public:
|
||||
DropIndxConf* getConf() {
|
||||
return &m_conf;
|
||||
|
|
|
|||
|
|
@ -10237,6 +10237,7 @@ Dbdict::buildIndex_sendReply(Signal* signal, OpBuildIndexPtr opPtr,
|
|||
rep->setIndexId(opPtr.p->m_request.getIndexId());
|
||||
if (sendRef) {
|
||||
rep->setErrorCode(opPtr.p->m_errorCode);
|
||||
rep->masterNodeId = opPtr.p->m_errorNode;
|
||||
gsn = GSN_BUILDINDXREF;
|
||||
length = BuildIndxRef::SignalLength;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2123,7 +2123,7 @@ NdbDictInterface::execCREATE_INDX_REF(NdbApiSignal * signal,
|
|||
const CreateIndxRef* const ref = CAST_CONSTPTR(CreateIndxRef, signal->getDataPtr());
|
||||
m_error.code = ref->getErrorCode();
|
||||
if(m_error.code == ref->NotMaster)
|
||||
m_masterNodeId= ref->m_errorNode;
|
||||
m_masterNodeId= ref->masterNodeId;
|
||||
m_waiter.signal(NO_WAIT);
|
||||
}
|
||||
|
||||
|
|
@ -2249,7 +2249,7 @@ NdbDictInterface::execDROP_INDX_REF(NdbApiSignal * signal,
|
|||
const DropIndxRef* const ref = CAST_CONSTPTR(DropIndxRef, signal->getDataPtr());
|
||||
m_error.code = ref->getErrorCode();
|
||||
if(m_error.code == ref->NotMaster)
|
||||
m_masterNodeId= ref->m_errorNode;
|
||||
m_masterNodeId= ref->masterNodeId;
|
||||
m_waiter.signal(NO_WAIT);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue