ndb - bug#25329

  extra sledge hammer, (real 51)
  use dicklock to prevent SUB_START_REQ during node recovery
parent 8cf69ddb
...@@ -10050,9 +10050,20 @@ void Dbdict::execSUB_START_REQ(Signal* signal) ...@@ -10050,9 +10050,20 @@ void Dbdict::execSUB_START_REQ(Signal* signal)
} }
OpSubEventPtr subbPtr; OpSubEventPtr subbPtr;
Uint32 errCode = 0; Uint32 errCode = 0;
DictLockPtr loopPtr;
if (c_dictLockQueue.first(loopPtr) &&
loopPtr.p->lt->lockType == DictLockReq::NodeRestartLock)
{
jam();
errCode = 1405;
goto busy;
}
if (!c_opSubEvent.seize(subbPtr)) { if (!c_opSubEvent.seize(subbPtr)) {
errCode = SubStartRef::Busy; errCode = SubStartRef::Busy;
busy: busy:
jam();
SubStartRef * ref = (SubStartRef *)signal->getDataPtrSend(); SubStartRef * ref = (SubStartRef *)signal->getDataPtrSend();
{ // fix { // fix
......
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