mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
Update src/redis-cli.c
Co-authored-by: debing.sun <debing.sun@redis.com>
This commit is contained in:
parent
1200115af0
commit
98885caa5d
1 changed files with 4 additions and 5 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue