mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
ndb - bug#25329
extra sledge hammer, (real 51) use dicklock to prevent SUB_START_REQ during node recovery storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp: use dicklock to prevent SUB_START_REQ during node recovery
This commit is contained in:
parent
db00700394
commit
f0b5082569
1 changed files with 11 additions and 0 deletions
|
@ -10050,9 +10050,20 @@ void Dbdict::execSUB_START_REQ(Signal* signal)
|
|||
}
|
||||
OpSubEventPtr subbPtr;
|
||||
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)) {
|
||||
errCode = SubStartRef::Busy;
|
||||
busy:
|
||||
jam();
|
||||
SubStartRef * ref = (SubStartRef *)signal->getDataPtrSend();
|
||||
|
||||
{ // fix
|
||||
|
|
Loading…
Reference in a new issue