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