mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 09:30:55 +00:00
Cluster: added a missing return on CLUSTER SETSLOT.
This commit is contained in:
parent
7ddc0fe652
commit
d2b8281b3f
@ -1669,8 +1669,11 @@ void clusterCommand(redisClient *c) {
|
|||||||
/* CLUSTER SETSLOT <SLOT> NODE <NODE ID> */
|
/* CLUSTER SETSLOT <SLOT> NODE <NODE ID> */
|
||||||
clusterNode *n = clusterLookupNode(c->argv[4]->ptr);
|
clusterNode *n = clusterLookupNode(c->argv[4]->ptr);
|
||||||
|
|
||||||
if (!n) addReplyErrorFormat(c,"Unknown node %s",
|
if (!n) {
|
||||||
(char*)c->argv[4]->ptr);
|
addReplyErrorFormat(c,"Unknown node %s",
|
||||||
|
(char*)c->argv[4]->ptr);
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* If this hash slot was served by 'myself' before to switch
|
/* If this hash slot was served by 'myself' before to switch
|
||||||
* make sure there are no longer local keys for this hash slot. */
|
* make sure there are no longer local keys for this hash slot. */
|
||||||
if (server.cluster->slots[slot] == server.cluster->myself &&
|
if (server.cluster->slots[slot] == server.cluster->myself &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user