Commit 5b32b8e1 authored by unknown's avatar unknown

Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/home/jonas/src/mysql-4.1

parents da244cc9 65558d18
......@@ -103,8 +103,22 @@ void Ndbcntr::execCONTINUEB(Signal* signal)
}
Uint64 now = NdbTick_CurrentMillisecond();
if(now > c_start.m_startFailureTimeout){
ndbrequire(false);
if(now > c_start.m_startFailureTimeout)
{
jam();
Uint32 to_3= 0;
const ndb_mgm_configuration_iterator * p =
theConfiguration.getOwnConfigIterator();
ndb_mgm_get_int_parameter(p, CFG_DB_START_FAILURE_TIMEOUT, &to_3);
BaseString tmp;
tmp.append("Shutting down node as total restart time exceeds "
" StartFailureTimeout as set in config file ");
if(to_3 == 0)
tmp.append(" 0 (inifinite)");
else
tmp.appfmt(" %d", to_3);
progError(__LINE__, ERR_SYSTEM_ERROR, tmp.c_str());
}
signal->theData[0] = ZSTARTUP;
......@@ -413,7 +427,7 @@ inline
Uint64
setTimeout(Uint64 time, Uint32 timeoutValue){
if(timeoutValue == 0)
return ~0;
return ~(Uint64)0;
return time + timeoutValue;
}
......
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