diff --git a/src/redis-cli.c b/src/redis-cli.c index e998c5271..4318b623e 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -5191,11 +5191,10 @@ static int clusterManagerMigrateKeysInSlot(clusterManagerNode *source, clusterManagerLogWarn("*** Slot was not served, setting " "owner to node %s:%d.\n", target->ip, target->port); - int setslot_ok = clusterManagerSetSlot(source, target, slot, "node", NULL); - if (!setslot_ok) { - clusterManagerLogErr("*** Failed to set slot owner for slot%d", slot); - success = 0; - goto next; + if (!clusterManagerSetSlot(source, target, slot, "node", NULL)) { + clusterManagerLogErr("*** Failed to set slot owner for slot%d", slot); + success = 0; + goto next; } } /* If the key already exists in the target node (BUSYKEY),