Commit f254d9f1 authored by joreland@mysql.com's avatar joreland@mysql.com

BUg#3910

parent 58240397
......@@ -132,6 +132,10 @@ void Cmvmi::execNDB_TAMPER(Signal* signal)
if(ERROR_INSERTED(9998)){
while(true) NdbSleep_SecSleep(1);
}
if(ERROR_INSERTED(9997)){
ndbrequire(false);
}
}//execNDB_TAMPER()
void Cmvmi::execSET_LOGLEVELORD(Signal* signal)
......
......@@ -93,7 +93,7 @@ NDB_MAIN(ndb_kernel){
catchsigs(true);
int status = 0;
while(waitpid(child, &status, 0) != child);
if(WIFEXITED(status) || !theConfig->stopOnError()){
if(WIFEXITED(status)){
switch(WEXITSTATUS(status)){
case NRT_Default:
g_eventLogger.info("Angel shutting down");
......@@ -117,13 +117,13 @@ NDB_MAIN(ndb_kernel){
globalData.theRestartFlag = perform_start;
break;
}
g_eventLogger.info("Ndb has terminated (pid %d) restarting", child);
} else {
} else if(theConfig->stopOnError()){
/**
* Error shutdown && stopOnError()
*/
exit(0);
}
g_eventLogger.info("Ndb has terminated (pid %d) restarting", child);
}
g_eventLogger.info("Angel pid: %d ndb pid: %d", getppid(), getpid());
......
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