Merge pull request #5590 from yongman/fix-cluster-fix-command

Fix command error when fixing open slots
This commit is contained in:
Salvatore Sanfilippo 2018-11-22 11:10:56 +01:00 committed by GitHub
commit f3601fcb13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3962,6 +3962,7 @@ static int clusterManagerFixOpenSlot(int slot) {
while ((ln = listNext(&li)) != NULL) {
clusterManagerNode *n = ln->value;
if (n == owner) continue;
if (n->flags & CLUSTER_MANAGER_FLAG_SLAVE) continue;
redisReply *r = CLUSTER_MANAGER_COMMAND(n,
"CLUSTER SETSLOT %d %s %s", slot, "NODE", owner->name);
success = clusterManagerCheckRedisReply(n, r, NULL);