mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Merge pull request #2445 from soveran/add-cluster-myid
Add command CLUSTER MYID
This commit is contained in:
commit
36c1a7cba3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user