1
0
mirror of https://github.com/fluencelabs/redis synced 2025-07-23 20:41:56 +00:00

Fix iterator for issue .

Itereator misuse due to analyzeLatencyForEvent() accessing the
dictionary during the iteration, without the iterator being
reclared as safe.
This commit is contained in:
antirez
2015-03-04 11:48:16 -08:00
parent c77081a45a
commit 509a6cc1e8

@@ -248,7 +248,7 @@ sds createLatencyReport(void) {
dictEntry *de;
int eventnum = 0;
di = dictGetIterator(server.latency_events);
di = dictGetSafeIterator(server.latency_events);
while((de = dictNext(di)) != NULL) {
char *event = dictGetKey(de);
struct latencyTimeSeries *ts = dictGetVal(de);