mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/51-telco-gca storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Auto merged
This commit is contained in:
commit
fb349433aa
1 changed files with 23 additions and 4 deletions
|
@ -11752,6 +11752,13 @@ void Dblqh::sendLCP_COMPLETE_REP(Signal* signal, Uint32 lcpId)
|
|||
jam();
|
||||
sendEMPTY_LCP_CONF(signal, true);
|
||||
}
|
||||
|
||||
if (getNodeState().getNodeRestartInProgress())
|
||||
{
|
||||
jam();
|
||||
ndbrequire(cstartRecReq == 2);
|
||||
cstartRecReq = 3;
|
||||
}
|
||||
return;
|
||||
|
||||
}//Dblqh::sendCOMP_LCP_ROUND()
|
||||
|
@ -12022,16 +12029,28 @@ void Dblqh::execGCP_SAVEREQ(Signal* signal)
|
|||
}//if
|
||||
|
||||
ndbrequire(ccurrentGcprec == RNIL);
|
||||
ccurrentGcprec = 0;
|
||||
gcpPtr.i = ccurrentGcprec;
|
||||
ptrCheckGuard(gcpPtr, cgcprecFileSize, gcpRecord);
|
||||
|
||||
cnewestCompletedGci = gci;
|
||||
if (gci > cnewestGci) {
|
||||
jam();
|
||||
cnewestGci = gci;
|
||||
}//if
|
||||
|
||||
if(getNodeState().getNodeRestartInProgress() && cstartRecReq < 3)
|
||||
{
|
||||
GCPSaveRef * const saveRef = (GCPSaveRef*)&signal->theData[0];
|
||||
saveRef->dihPtr = dihPtr;
|
||||
saveRef->nodeId = getOwnNodeId();
|
||||
saveRef->gci = gci;
|
||||
saveRef->errorCode = GCPSaveRef::NodeRestartInProgress;
|
||||
sendSignal(dihBlockRef, GSN_GCP_SAVEREF, signal,
|
||||
GCPSaveRef::SignalLength, JBB);
|
||||
return;
|
||||
}
|
||||
|
||||
ccurrentGcprec = 0;
|
||||
gcpPtr.i = ccurrentGcprec;
|
||||
ptrCheckGuard(gcpPtr, cgcprecFileSize, gcpRecord);
|
||||
|
||||
gcpPtr.p->gcpBlockref = dihBlockRef;
|
||||
gcpPtr.p->gcpUserptr = dihPtr;
|
||||
gcpPtr.p->gcpId = gci;
|
||||
|
|
Loading…
Reference in a new issue