Commit ccf268fa authored by antirez's avatar antirez
Browse files

Cluster: fix clusterBlacklistAddNode() by setting right expire time.

The hash table value should be set to now + 60 seconds otherwise it
expires immediately.
parent 4e186115
......@@ -714,7 +714,7 @@ void clusterBlacklistAddNode(clusterNode *node) {
id = sdsdup(id);
}
de = dictFind(server.cluster->nodes_black_list,id);
dictSetUnsignedIntegerVal(de,time(NULL));
dictSetUnsignedIntegerVal(de,time(NULL)+REDIS_CLUSTER_BLACKLIST_TTL);
sdsfree(id);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment