Cluster: fix clusterBlacklistAddNode() by setting right expire time.
The hash table value should be set to now + 60 seconds otherwise it expires immediately.
This commit is contained in:
parent
8602cbc8b4
commit
7f48ad0629
@ -714,7 +714,7 @@ void clusterBlacklistAddNode(clusterNode *node) {
|
|||||||
id = sdsdup(id);
|
id = sdsdup(id);
|
||||||
}
|
}
|
||||||
de = dictFind(server.cluster->nodes_black_list,id);
|
de = dictFind(server.cluster->nodes_black_list,id);
|
||||||
dictSetUnsignedIntegerVal(de,time(NULL));
|
dictSetUnsignedIntegerVal(de,time(NULL)+REDIS_CLUSTER_BLACKLIST_TTL);
|
||||||
sdsfree(id);
|
sdsfree(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user