mirror of
https://github.com/fluencelabs/redis
synced 2025-05-12 02:37:11 +00:00
use safe Dict iteration in DEBUG DIGEST
This commit is contained in:
parent
2e638590ad
commit
c86a4f9102
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user