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
8eff339c
Commit
8eff339c
authored
Sep 04, 2013
by
antirez
Browse files
Cluster: CLUSTER SAVECONFIG command added.
parent
528201ad
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
8eff339c
...
@@ -2314,6 +2314,14 @@ void clusterCommand(redisClient *c) {
...
@@ -2314,6 +2314,14 @@ void clusterCommand(redisClient *c) {
(unsigned long)sdslen(info)));
(unsigned long)sdslen(info)));
addReplySds(c,info);
addReplySds(c,info);
addReply(c,shared.crlf);
addReply(c,shared.crlf);
} else if (!strcasecmp(c->argv[1]->ptr,"saveconfig") && c->argc == 2) {
int retval = clusterSaveConfig();
if (retval == 0)
addReply(c,shared.ok);
else
addReplyErrorFormat(c,"error saving the cluster node config: %s",
strerror(errno));
} else if (!strcasecmp(c->argv[1]->ptr,"keyslot") && c->argc == 3) {
} else if (!strcasecmp(c->argv[1]->ptr,"keyslot") && c->argc == 3) {
/* CLUSTER KEYSLOT <key> */
/* CLUSTER KEYSLOT <key> */
sds key = c->argv[2]->ptr;
sds key = c->argv[2]->ptr;
...
...
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