Commit c86a4f91 authored by antirez's avatar antirez
Browse files

use safe Dict iteration in DEBUG DIGEST

parent 2e638590
...@@ -80,7 +80,7 @@ void computeDatasetDigest(unsigned char *final) { ...@@ -80,7 +80,7 @@ void computeDatasetDigest(unsigned char *final) {
redisDb *db = server.db+j; redisDb *db = server.db+j;
if (dictSize(db->dict) == 0) continue; 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 /* hash the DB id, so the same dataset moved in a different
* DB will lead to a different digest */ * DB will lead to a different digest */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment