From c86a4f9102da988eaa9eeea113391e956824031f Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 10 May 2011 10:42:20 +0200 Subject: [PATCH] use safe Dict iteration in DEBUG DIGEST --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index fff8d727..16ca27a1 100644 --- a/src/debug.c +++ b/src/debug.c @@ -80,7 +80,7 @@ void computeDatasetDigest(unsigned char *final) { redisDb *db = server.db+j; if (dictSize(db->dict) == 0) continue; - di = dictGetIterator(db->dict); + di = dictGetSafeIterator(db->dict); /* hash the DB id, so the same dataset moved in a different * DB will lead to a different digest */