mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Removed some error codes since the errors are hard errors which
need ndbrequire instead.
This commit is contained in:
@ -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)
|
|||||||
}
|
}
|
||||||
// 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)
|
|||||||
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);
|
||||||
|
Reference in New Issue
Block a user