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
5080f2d6
Commit
5080f2d6
authored
May 25, 2015
by
antirez
Browse files
Sentinel: help subcommand in simulate-failure command
parent
fb3af75f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
5080f2d6
...
...
@@ -3138,6 +3138,10 @@ void sentinelCommand(redisClient *c) {
SENTINEL_SIMFAILURE_CRASH_AFTER_PROMOTION
;
redisLog
(
REDIS_WARNING
,
"Failure simulation: this Sentinel "
"will crash after promoting the selected slave to master"
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
j
]
->
ptr
,
"help"
))
{
addReplyMultiBulkLen
(
c
,
2
);
addReplyBulkCString
(
c
,
"crash-after-election"
);
addReplyBulkCString
(
c
,
"crash-after-promotion"
);
}
else
{
addReplyError
(
c
,
"Unknown failure simulation specified"
);
return
;
...
...
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