Commit 1d965d98 authored by joreland@mysql.com's avatar joreland@mysql.com

Fix AttrType moves

parent 0b462360
...@@ -22,8 +22,7 @@ libndbapi_la_SOURCES_loc = \ ...@@ -22,8 +22,7 @@ libndbapi_la_SOURCES_loc = \
NdbOperationDefine.cpp \ NdbOperationDefine.cpp \
NdbOperationExec.cpp \ NdbOperationExec.cpp \
NdbResultSet.cpp \ NdbResultSet.cpp \
NdbCursorOperation.cpp \ NdbScanOperation.cpp NdbScanFilter.cpp \
NdbScanReceiver.cpp NdbScanOperation.cpp NdbScanFilter.cpp \
NdbIndexOperation.cpp \ NdbIndexOperation.cpp \
NdbEventOperation.cpp \ NdbEventOperation.cpp \
NdbEventOperationImpl.cpp \ NdbEventOperationImpl.cpp \
......
...@@ -1359,16 +1359,16 @@ NdbConnection::receiveTCKEY_FAILCONF(const TcKeyFailConf * failConf) ...@@ -1359,16 +1359,16 @@ NdbConnection::receiveTCKEY_FAILCONF(const TcKeyFailConf * failConf)
* in committing the transaction. * in committing the transaction.
*/ */
switch(tOp->theOperationType){ switch(tOp->theOperationType){
case UpdateRequest: case NdbOperation::UpdateRequest:
case InsertRequest: case NdbOperation::InsertRequest:
case DeleteRequest: case NdbOperation::DeleteRequest:
case WriteRequest: case NdbOperation::WriteRequest:
tOp = tOp->next(); tOp = tOp->next();
break; break;
case ReadRequest: case NdbOperation::ReadRequest:
case ReadExclusive: case NdbOperation::ReadExclusive:
case OpenScanRequest: case NdbOperation::OpenScanRequest:
case OpenRangeScanRequest: case NdbOperation::OpenRangeScanRequest:
theCompletionStatus = CompletedFailure; theCompletionStatus = CompletedFailure;
setOperationErrorCodeAbort(4115); setOperationErrorCodeAbort(4115);
tOp = NULL; tOp = NULL;
...@@ -1403,18 +1403,18 @@ NdbConnection::receiveTCKEY_FAILREF(NdbApiSignal* aSignal) ...@@ -1403,18 +1403,18 @@ NdbConnection::receiveTCKEY_FAILREF(NdbApiSignal* aSignal)
We received an indication of that this transaction was aborted due to a We received an indication of that this transaction was aborted due to a
node failure. node failure.
*/ */
if (theSendStatus == sendTC_ROLLBACK) { if (theSendStatus == NdbConnection::sendTC_ROLLBACK) {
/* /*
We were in the process of sending a rollback anyways. We will We were in the process of sending a rollback anyways. We will
report it as a success. report it as a success.
*/ */
theCompletionStatus = CompletedSuccess; theCompletionStatus = NdbConnection::CompletedSuccess;
} else { } else {
theCompletionStatus = CompletedFailure; theCompletionStatus = NdbConnection::CompletedFailure;
theError.code = 4031; theError.code = 4031;
}//if }//if
theReleaseOnClose = true; theReleaseOnClose = true;
theCommitStatus = Aborted; theCommitStatus = NdbConnection::Aborted;
return 0; return 0;
} }
return -1; return -1;
...@@ -1463,8 +1463,8 @@ NdbConnection::receiveTCINDXCONF(const TcIndxConf * indxConf, ...@@ -1463,8 +1463,8 @@ NdbConnection::receiveTCINDXCONF(const TcIndxConf * indxConf,
// no Commit flag set. This is clearly an anomaly. // no Commit flag set. This is clearly an anomaly.
/**********************************************************************/ /**********************************************************************/
theError.code = 4011; theError.code = 4011;
theCompletionStatus = CompletedFailure; theCompletionStatus = NdbConnection::CompletedFailure;
theCommitStatus = Aborted; theCommitStatus = NdbConnection::Aborted;
return 0; return 0;
}//if }//if
if (tNoComp >= tNoSent) { if (tNoComp >= tNoSent) {
...@@ -1497,8 +1497,8 @@ NdbConnection::receiveTCINDXREF( NdbApiSignal* aSignal) ...@@ -1497,8 +1497,8 @@ NdbConnection::receiveTCINDXREF( NdbApiSignal* aSignal)
/* and we only need to report completion and return with the */ /* and we only need to report completion and return with the */
/* error code to the application. */ /* error code to the application. */
/**********************************************************************/ /**********************************************************************/
theCompletionStatus = CompletedFailure; theCompletionStatus = NdbConnection::CompletedFailure;
theCommitStatus = Aborted; theCommitStatus = NdbConnection::Aborted;
return 0; return 0;
} }
return -1; return -1;
...@@ -1517,7 +1517,7 @@ NdbConnection::OpCompleteFailure() ...@@ -1517,7 +1517,7 @@ NdbConnection::OpCompleteFailure()
{ {
Uint32 tNoComp = theNoOfOpCompleted; Uint32 tNoComp = theNoOfOpCompleted;
Uint32 tNoSent = theNoOfOpSent; Uint32 tNoSent = theNoOfOpSent;
theCompletionStatus = CompletedFailure; theCompletionStatus = NdbConnection::CompletedFailure;
tNoComp++; tNoComp++;
theNoOfOpCompleted = tNoComp; theNoOfOpCompleted = tNoComp;
if (tNoComp == tNoSent) { if (tNoComp == tNoSent) {
...@@ -1528,7 +1528,7 @@ NdbConnection::OpCompleteFailure() ...@@ -1528,7 +1528,7 @@ NdbConnection::OpCompleteFailure()
//operation is not really part of that transaction. //operation is not really part of that transaction.
//------------------------------------------------------------------------ //------------------------------------------------------------------------
if (theSimpleState == 1) { if (theSimpleState == 1) {
theCommitStatus = Aborted; theCommitStatus = NdbConnection::Aborted;
}//if }//if
return 0; // Last operation received return 0; // Last operation received
} else if (tNoComp > tNoSent) { } else if (tNoComp > tNoSent) {
...@@ -1556,7 +1556,7 @@ NdbConnection::OpCompleteSuccess() ...@@ -1556,7 +1556,7 @@ NdbConnection::OpCompleteSuccess()
theNoOfOpCompleted = tNoComp; theNoOfOpCompleted = tNoComp;
if (tNoComp == tNoSent) { // Last operation completed if (tNoComp == tNoSent) { // Last operation completed
if (theSimpleState == 1) { if (theSimpleState == 1) {
theCommitStatus = Committed; theCommitStatus = NdbConnection::Committed;
}//if }//if
return 0; return 0;
} else if (tNoComp < tNoSent) { } else if (tNoComp < tNoSent) {
...@@ -1564,7 +1564,7 @@ NdbConnection::OpCompleteSuccess() ...@@ -1564,7 +1564,7 @@ NdbConnection::OpCompleteSuccess()
} else { } else {
setOperationErrorCodeAbort(4113); // Too many operations, setOperationErrorCodeAbort(4113); // Too many operations,
// stop waiting for more // stop waiting for more
theCompletionStatus = CompletedFailure; theCompletionStatus = NdbConnection::CompletedFailure;
return 0; return 0;
}//if }//if
}//NdbConnection::OpCompleteSuccess() }//NdbConnection::OpCompleteSuccess()
...@@ -1577,7 +1577,7 @@ Remark: Get global checkpoint identity of the transaction ...@@ -1577,7 +1577,7 @@ Remark: Get global checkpoint identity of the transaction
int int
NdbConnection::getGCI() NdbConnection::getGCI()
{ {
if (theCommitStatus == Committed) { if (theCommitStatus == NdbConnection::Committed) {
return theGlobalCheckpointId; return theGlobalCheckpointId;
}//if }//if
return 0; return 0;
......
...@@ -439,7 +439,7 @@ NdbScanOperation::executeCursor(int nodeId){ ...@@ -439,7 +439,7 @@ NdbScanOperation::executeCursor(int nodeId){
TRACE_DEBUG("The node is stopping when attempting to start a scan"); TRACE_DEBUG("The node is stopping when attempting to start a scan");
setErrorCode(4030); setErrorCode(4030);
}//if }//if
tCon->theCommitStatus = Aborted; tCon->theCommitStatus = NdbConnection::Aborted;
}//if }//if
return -1; return -1;
} }
...@@ -709,8 +709,8 @@ NdbScanOperation::execCLOSE_SCAN_REP(Uint32 errCode){ ...@@ -709,8 +709,8 @@ NdbScanOperation::execCLOSE_SCAN_REP(Uint32 errCode){
/** /**
* Normal termination * Normal termination
*/ */
theNdbCon->theCommitStatus = Committed; theNdbCon->theCommitStatus = NdbConnection::Committed;
theNdbCon->theCompletionStatus = CompletedSuccess; theNdbCon->theCompletionStatus = NdbConnection::CompletedSuccess;
} else { } else {
/** /**
* Something is fishy * Something is fishy
...@@ -1111,7 +1111,7 @@ NdbIndexScanOperation::fix_get_values(){ ...@@ -1111,7 +1111,7 @@ NdbIndexScanOperation::fix_get_values(){
NdbRecAttr * curr = theReceiver.theFirstRecAttr; NdbRecAttr * curr = theReceiver.theFirstRecAttr;
Uint32 cnt = m_sort_columns; Uint32 cnt = m_sort_columns;
assert(cnt < MAXNROFTUPLEKEY); assert(cnt < NDB_MAX_NO_OF_ATTRIBUTES_IN_KEY);
Uint32 idx = 0; Uint32 idx = 0;
NdbTableImpl * tab = m_currentTable; NdbTableImpl * tab = m_currentTable;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment