mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Use a safe dict.c iterator in clusterCron().
This commit is contained in:
parent
35a977c499
commit
b804afcf01
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user