mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
skip slave nodes when sending cluster setslot command
This commit is contained in:
parent
8acc07e6f0
commit
2f76829dc7
@ -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…
x
Reference in New Issue
Block a user