Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1eb713a4
Commit
1eb713a4
authored
Apr 29, 2011
by
antirez
Browse files
CLUSTER KEYSLOT command
parent
d37299e3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
1eb713a4
...
@@ -1205,6 +1205,10 @@ void clusterCommand(redisClient *c) {
...
@@ -1205,6 +1205,10 @@ 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
,
"keyslot"
)
&&
c
->
argc
==
3
)
{
sds
key
=
c
->
argv
[
2
]
->
ptr
;
addReplyLongLong
(
c
,
keyHashSlot
(
key
,
sdslen
(
key
)));
}
else
{
}
else
{
addReplyError
(
c
,
"Wrong CLUSTER subcommand or number of arguments"
);
addReplyError
(
c
,
"Wrong CLUSTER subcommand or number of arguments"
);
}
}
...
...
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