From 6201eb0c55503310a41a0f3448d1581069624303 Mon Sep 17 00:00:00 2001 From: Michel Martens Date: Tue, 10 Mar 2015 16:43:19 +0000 Subject: [PATCH] Add command CLUSTER MYID --- src/cluster.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cluster.c b/src/cluster.c index df1498bd..f1e767a6 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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);