Commit ee7e84b3 authored by unknown's avatar unknown

Removed some error codes since the errors are hard errors which

need ndbrequire instead.
parent ce689351
...@@ -105,8 +105,6 @@ public: ...@@ -105,8 +105,6 @@ public:
enum ErrorCode { enum ErrorCode {
NoError = 0, NoError = 0,
InvalidRequest = 800, InvalidRequest = 800,
NoFreeFragmentOper = 830,
NoFreeIndexFragment = 852,
NoFreeFragment = 604, NoFreeFragment = 604,
NoFreeAttributes = 827 NoFreeAttributes = 827
}; };
......
...@@ -53,11 +53,7 @@ Dbtux::execTUXFRAGREQ(Signal* signal) ...@@ -53,11 +53,7 @@ Dbtux::execTUXFRAGREQ(Signal* signal)
} }
// get new operation record // get new operation record
c_fragOpPool.seize(fragOpPtr); c_fragOpPool.seize(fragOpPtr);
if (fragOpPtr.i == RNIL) { ndbrequire(fragOpPtr.i != RNIL);
jam();
errorCode = TuxFragRef::NoFreeFragmentOper;
break;
}
new (fragOpPtr.p) FragOp(); new (fragOpPtr.p) FragOp();
fragOpPtr.p->m_userPtr = req->userPtr; fragOpPtr.p->m_userPtr = req->userPtr;
fragOpPtr.p->m_userRef = req->userRef; fragOpPtr.p->m_userRef = req->userRef;
...@@ -66,11 +62,7 @@ Dbtux::execTUXFRAGREQ(Signal* signal) ...@@ -66,11 +62,7 @@ Dbtux::execTUXFRAGREQ(Signal* signal)
fragOpPtr.p->m_fragNo = indexPtr.p->m_numFrags; fragOpPtr.p->m_fragNo = indexPtr.p->m_numFrags;
fragOpPtr.p->m_numAttrsRecvd = 0; fragOpPtr.p->m_numAttrsRecvd = 0;
// check if index has place for more fragments // check if index has place for more fragments
if (indexPtr.p->m_numFrags == MaxIndexFragments) { ndbrequire(indexPtr.p->m_numFrags < MaxIndexFragments);
jam();
errorCode = TuxFragRef::NoFreeIndexFragment;
break;
}
// seize new fragment record // seize new fragment record
FragPtr fragPtr; FragPtr fragPtr;
c_fragPool.seize(fragPtr); c_fragPool.seize(fragPtr);
......
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