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
1efacfe5
Commit
1efacfe5
authored
Jan 29, 2015
by
antirez
Browse files
CLUSTER count-failure-reports command added.
parent
3fd43062
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
1efacfe5
...
@@ -4063,6 +4063,18 @@ void clusterCommand(redisClient *c) {
...
@@ -4063,6 +4063,18 @@ void clusterCommand(redisClient *c) {
addReplyBulkCString(c,ni);
addReplyBulkCString(c,ni);
sdsfree(ni);
sdsfree(ni);
}
}
} else if (!strcasecmp(c->argv[1]->ptr,"count-failure-reports") &&
c->argc == 3)
{
/* CLUSTER COUNT-FAILURE-REPORTS <NODE ID> */
clusterNode *n = clusterLookupNode(c->argv[2]->ptr);
if (!n) {
addReplyErrorFormat(c,"Unknown node %s", (char*)c->argv[2]->ptr);
return;
} else {
addReplyLongLong(c,clusterNodeFailureReportsCount(n));
}
} else if (!strcasecmp(c->argv[1]->ptr,"failover") &&
} else if (!strcasecmp(c->argv[1]->ptr,"failover") &&
(c->argc == 2 || c->argc == 3))
(c->argc == 2 || c->argc == 3))
{
{
...
...
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