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