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
711a2305
Commit
711a2305
authored
May 29, 2006
by
anozdrin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for BUG#18023: IM: instance can be started several times;
monitor interval must be > 2sec.
parent
c368dc18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
server-tools/instance-manager/guardian.cc
server-tools/instance-manager/guardian.cc
+14
-8
No files found.
server-tools/instance-manager/guardian.cc
View file @
711a2305
...
...
@@ -139,9 +139,12 @@ void Guardian_thread::process_instance(Instance *instance,
case
JUST_CRASHED
:
if
(
current_time
-
current_node
->
crash_moment
<=
2
)
{
instance
->
start
();
log_info
(
"guardian: starting instance %s"
,
instance
->
options
.
instance_name
);
if
(
instance
->
is_crashed
())
{
instance
->
start
();
log_info
(
"guardian: starting instance %s"
,
instance
->
options
.
instance_name
);
}
}
else
current_node
->
state
=
CRASHED
;
...
...
@@ -152,11 +155,14 @@ void Guardian_thread::process_instance(Instance *instance,
{
if
((
current_node
->
restart_counter
<
restart_retry
))
{
instance
->
start
();
current_node
->
last_checked
=
current_time
;
current_node
->
restart_counter
++
;
log_info
(
"guardian: restarting instance %s"
,
instance
->
options
.
instance_name
);
if
(
instance
->
is_crashed
())
{
instance
->
start
();
current_node
->
last_checked
=
current_time
;
current_node
->
restart_counter
++
;
log_info
(
"guardian: restarting instance %s"
,
instance
->
options
.
instance_name
);
}
}
else
current_node
->
state
=
CRASHED_AND_ABANDONED
;
...
...
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