提交 d5e8b0a4 编写于 作者: A antirez

Cluster: cleanup idle failure reports every time we remove one.

This is not very important as anyway when the function counting the
number of reports is called the cleanup is performed. However with this
change if only part of the nodes that reported the failure will report
the node is back ok, we'll cleanup the older entries ASAP. In complex
split net split scenarios, and when we are dealing with clusters having
nodes in the order of ~ 1000, this can save some CPU.
上级 9cb578ce
......@@ -398,6 +398,7 @@ void clusterNodeDelFailureReport(clusterNode *node, clusterNode *sender) {
/* Remove the failure report. */
listDelNode(l,ln);
clusterNodeCleanupFailureReports(node);
}
/* Remove failure reports that are too old, where too old means reasonably
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册