mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Merge pull request #5590 from yongman/fix-cluster-fix-command
Fix command error when fixing open slots
This commit is contained in:
commit
f3601fcb13
@ -3962,6 +3962,7 @@ static int clusterManagerFixOpenSlot(int slot) {
|
|||||||
while ((ln = listNext(&li)) != NULL) {
|
while ((ln = listNext(&li)) != NULL) {
|
||||||
clusterManagerNode *n = ln->value;
|
clusterManagerNode *n = ln->value;
|
||||||
if (n == owner) continue;
|
if (n == owner) continue;
|
||||||
|
if (n->flags & CLUSTER_MANAGER_FLAG_SLAVE) continue;
|
||||||
redisReply *r = CLUSTER_MANAGER_COMMAND(n,
|
redisReply *r = CLUSTER_MANAGER_COMMAND(n,
|
||||||
"CLUSTER SETSLOT %d %s %s", slot, "NODE", owner->name);
|
"CLUSTER SETSLOT %d %s %s", slot, "NODE", owner->name);
|
||||||
success = clusterManagerCheckRedisReply(n, r, NULL);
|
success = clusterManagerCheckRedisReply(n, r, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user