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
f36482dd
Commit
f36482dd
authored
Mar 10, 2015
by
Michel Martens
Committed by
antirez
Mar 18, 2015
Browse files
Add command CLUSTER MYID
parent
085ef208
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
f36482dd
...
@@ -3760,6 +3760,9 @@ void clusterCommand(redisClient *c) {
...
@@ -3760,6 +3760,9 @@ void clusterCommand(redisClient *c) {
o
=
createObject
(
REDIS_STRING
,
ci
);
o
=
createObject
(
REDIS_STRING
,
ci
);
addReplyBulk
(
c
,
o
);
addReplyBulk
(
c
,
o
);
decrRefCount
(
o
);
decrRefCount
(
o
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"myid"
)
&&
c
->
argc
==
2
)
{
/* CLUSTER MYID */
addReplyBulkCBuffer
(
c
,
myself
->
name
,
REDIS_CLUSTER_NAMELEN
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"slots"
)
&&
c
->
argc
==
2
)
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"slots"
)
&&
c
->
argc
==
2
)
{
/* CLUSTER SLOTS */
/* CLUSTER SLOTS */
clusterReplyMultiBulkSlots
(
c
);
clusterReplyMultiBulkSlots
(
c
);
...
...
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