X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6f0e77ca19278fd37d19c28156d8704754498680..a1b1c1ea3adb864c8c2e3feb4eaed890a9b505cf:/src/t_hash.c diff --git a/src/t_hash.c b/src/t_hash.c index 5b7a347a..aa021b03 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -403,7 +403,11 @@ void hashTypeConvertZiplist(robj *o, int enc) { value = hashTypeCurrentObject(hi, REDIS_HASH_VALUE); value = tryObjectEncoding(value); ret = dictAdd(dict, field, value); - redisAssert(ret == DICT_OK); + if (ret != DICT_OK) { + redisLogHexDump(REDIS_WARNING,"ziplist with dup elements dump", + o->ptr,ziplistBlobLen(o->ptr)); + redisAssert(ret == DICT_OK); + } } hashTypeReleaseIterator(hi);