Skip to content

Commit

Permalink
Add command CLUSTER MYID
Browse files Browse the repository at this point in the history
  • Loading branch information
soveran authored and antirez committed Mar 18, 2015
1 parent 085ef20 commit f36482d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -3760,6 +3760,9 @@ void clusterCommand(redisClient *c) {
o = createObject(REDIS_STRING,ci);
addReplyBulk(c,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) {
/* CLUSTER SLOTS */
clusterReplyMultiBulkSlots(c);
Expand Down

0 comments on commit f36482d

Please sign in to comment.