Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
56bc9cfa
Commit
56bc9cfa
authored
Mar 08, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#8918 - ndb - improve error message when stopping due to StartFailureTimeout
parent
afdbf9b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
+17
-3
No files found.
ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
View file @
56bc9cfa
...
@@ -103,8 +103,22 @@ void Ndbcntr::execCONTINUEB(Signal* signal)
...
@@ -103,8 +103,22 @@ void Ndbcntr::execCONTINUEB(Signal* signal)
}
}
Uint64
now
=
NdbTick_CurrentMillisecond
();
Uint64
now
=
NdbTick_CurrentMillisecond
();
if
(
now
>
c_start
.
m_startFailureTimeout
){
if
(
now
>
c_start
.
m_startFailureTimeout
)
ndbrequire
(
false
);
{
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
;
signal
->
theData
[
0
]
=
ZSTARTUP
;
...
@@ -413,7 +427,7 @@ inline
...
@@ -413,7 +427,7 @@ inline
Uint64
Uint64
setTimeout
(
Uint64
time
,
Uint32
timeoutValue
){
setTimeout
(
Uint64
time
,
Uint32
timeoutValue
){
if
(
timeoutValue
==
0
)
if
(
timeoutValue
==
0
)
return
~
0
;
return
~
(
Uint64
)
0
;
return
time
+
timeoutValue
;
return
time
+
timeoutValue
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment