Merge pull request #3712 from oranagra/fix_assert_debug_digest

fix rare assertion in DEBUG DIGEST
This commit is contained in:
Salvatore Sanfilippo 2017-01-20 11:01:43 +01:00 committed by GitHub
commit 432699845c

View File

@ -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 */