summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororanagra <oran@redislabs.com>2016-12-24 17:27:58 +0200
committeroranagra <oran@redislabs.com>2016-12-24 17:27:58 +0200
commitb2da5ea773356320af3cda6cfd0f1fc1e7d48ba7 (patch)
tree938ca5fd3d8f3b91471058e3d857aff7f66e5cf8
parent6712bce92c79de5c2caa38e9b597a3fa52fd497f (diff)
downloadredis-b2da5ea773356320af3cda6cfd0f1fc1e7d48ba7.tar.gz
fix rare assertion in DEBUG DIGEST
getExpire calls dictFind which can do rehashing. found by calling computeDatasetDigest from serverCron and running the test suite.
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
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 */