Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ba2edc41
Commit
ba2edc41
authored
Mar 18, 2014
by
antirez
Browse files
Sentinel: instance_is_killed proc added to sentinel.tcl.
parent
9c2063fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/sentinel.tcl
View file @
ba2edc41
...
...
@@ -356,6 +356,12 @@ proc kill_instance {type id} {
set ::pids
[
lsearch -all -inline -not -exact $::pids $pid
]
}
# Return true of the instance of the specified type/id is killed.
proc instance_is_killed
{
type id
}
{
set pid
[
get_instance_attrib $type $id pid
]
return $pid == -1
}
# Restart an instance previously killed by kill_instance
proc restart_instance
{
type id
}
{
set dirname
"
${type}
_
${id}
"
...
...
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