mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +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;
|
clusterNode *min_pong_node = NULL;
|
||||||
|
|
||||||
/* Check if we have disconnected nodes and re-establish the connection. */
|
/* 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) {
|
while((de = dictNext(di)) != NULL) {
|
||||||
clusterNode *node = dictGetVal(de);
|
clusterNode *node = dictGetVal(de);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user