diff options
author | oranagra <oran@redislabs.com> | 2016-12-24 17:27:58 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-01-30 10:10:21 +0100 |
commit | a73503530edb66580675c4e79e51d47e0688b838 (patch) | |
tree | fa33851acedd6d39afa2f46daaec6d0dcbae5834 | |
parent | b917e3fdb3f39082c3ef9efb5f3c977b5c5f453e (diff) | |
download | redis-a73503530edb66580675c4e79e51d47e0688b838.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index a97400e17..1ecb251bd 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 */ |