summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-03-08 10:27:37 +0100
committerunknown <joreland@mysql.com>2005-03-08 10:27:37 +0100
commit65558d1877ba2f19481319f5660cc12ad8924dd8 (patch)
tree14fd645bfefdbd91133fd537660a778e2c358b83 /ndb
parent16da840b78029e05b14357181b9d2a8b4826c153 (diff)
parent9606577705362ec585cc90ae5e908a0ee526e17b (diff)
downloadmariadb-git-65558d1877ba2f19481319f5660cc12ad8924dd8.tar.gz
Merge mysql.com:/home/jonas/src/fix
into mysql.com:/home/jonas/src/mysql-4.1
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp b/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
index 089cf613b03..9eaa203b098 100644
--- a/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
+++ b/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
@@ -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;
}