Update src/redis-cli.c

Co-authored-by: debing.sun <debing.sun@redis.com>
This commit is contained in:
bleeqer 2025-09-30 09:58:23 +09:00 committed by GitHub
parent 1200115af0
commit 98885caa5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),