From b2da5ea773356320af3cda6cfd0f1fc1e7d48ba7 Mon Sep 17 00:00:00 2001 From: oranagra Date: Sat, 24 Dec 2016 17:27:58 +0200 Subject: [PATCH] fix rare assertion in DEBUG DIGEST getExpire calls dictFind which can do rehashing. found by calling computeDatasetDigest from serverCron and running the test suite. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index b8ad4e511..2fd382fc0 100644 --- a/src/debug.c +++ b/src/debug.c @@ -126,7 +126,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 */