Commit 9bef4afe authored by jonas@perch.ndb.mysql.com's avatar jonas@perch.ndb.mysql.com

Merge perch.ndb.mysql.com:/home/jonas/src/51-work

into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
parents 1c620542 372cbc1d
...@@ -2455,7 +2455,12 @@ void Qmgr::execAPI_FAILREQ(Signal* signal) ...@@ -2455,7 +2455,12 @@ void Qmgr::execAPI_FAILREQ(Signal* signal)
// ignore if api not active // ignore if api not active
if (failedNodePtr.p->phase != ZAPI_ACTIVE) if (failedNodePtr.p->phase != ZAPI_ACTIVE)
{
jam();
// But send to SUMA anyway...
sendSignal(SUMA_REF, GSN_API_FAILREQ, signal, 2, JBA);
return; return;
}
signal->theData[0] = NDB_LE_Disconnected; signal->theData[0] = NDB_LE_Disconnected;
signal->theData[1] = failedNodePtr.i; signal->theData[1] = failedNodePtr.i;
......
...@@ -318,6 +318,12 @@ Suma::execSTTOR(Signal* signal) { ...@@ -318,6 +318,12 @@ Suma::execSTTOR(Signal* signal) {
createSequence(signal); createSequence(signal);
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
}//if }//if
if (ERROR_INSERTED(13030))
{
ndbout_c("Dont start handover");
return;
}
}//if }//if
if(startphase == 100) if(startphase == 100)
...@@ -563,6 +569,15 @@ void Suma::execAPI_FAILREQ(Signal* signal) ...@@ -563,6 +569,15 @@ void Suma::execAPI_FAILREQ(Signal* signal)
Uint32 failedApiNode = signal->theData[0]; Uint32 failedApiNode = signal->theData[0];
//BlockReference retRef = signal->theData[1]; //BlockReference retRef = signal->theData[1];
if (c_startup.m_restart_server_node_id &&
c_startup.m_restart_server_node_id != RNIL)
{
jam();
sendSignalWithDelay(reference(), GSN_API_FAILREQ, signal,
200, signal->getLength());
return;
}
c_failedApiNodes.set(failedApiNode); c_failedApiNodes.set(failedApiNode);
c_connected_nodes.clear(failedApiNode); c_connected_nodes.clear(failedApiNode);
bool found = removeSubscribersOnNode(signal, failedApiNode); bool found = removeSubscribersOnNode(signal, failedApiNode);
...@@ -911,6 +926,20 @@ Suma::execDUMP_STATE_ORD(Signal* signal){ ...@@ -911,6 +926,20 @@ Suma::execDUMP_STATE_ORD(Signal* signal){
{ {
CLEAR_ERROR_INSERT_VALUE; CLEAR_ERROR_INSERT_VALUE;
} }
if (tCase == 8009)
{
if (ERROR_INSERTED(13030))
{
CLEAR_ERROR_INSERT_VALUE;
sendSTTORRY(signal);
}
else
{
SET_ERROR_INSERT_VALUE(13030);
}
return;
}
} }
/************************************************************* /*************************************************************
......
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