提交 b804afcf 编写于 作者: A antirez

Use a safe dict.c iterator in clusterCron().

上级 35a977c4
......@@ -1585,7 +1585,7 @@ void clusterCron(void) {
clusterNode *min_pong_node = NULL;
/* Check if we have disconnected nodes and re-establish the connection. */
di = dictGetIterator(server.cluster->nodes);
di = dictGetSafeIterator(server.cluster->nodes);
while((de = dictNext(di)) != NULL) {
clusterNode *node = dictGetVal(de);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册