提交 ccf268fa 编写于 作者: A antirez

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

The hash table value should be set to now + 60 seconds otherwise it
expires immediately.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册