Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
This commit is contained in:
commit
af76e150c8
@ -11794,6 +11794,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()
|
||||
@ -12064,15 +12071,27 @@ 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user