X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3d9704d33574a8f4598ef129dc2b42872b30d1eb..d83eda48e9566a438048c10add8448e0fe65b534:/src/t_hash.c?ds=inline diff --git a/src/t_hash.c b/src/t_hash.c index 83ca5b27..3ccdfd14 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -160,7 +160,7 @@ hashTypeIterator *hashTypeInitIterator(robj *subject) { } else if (hi->encoding == REDIS_ENCODING_HT) { hi->di = dictGetIterator(subject->ptr); } else { - redisAssert(NULL); + redisAssertWithInfo(NULL,subject,0); } return hi; } @@ -250,7 +250,7 @@ void convertToRealHash(robj *o) { unsigned int klen, vlen; dict *dict = dictCreate(&hashDictType,NULL); - redisAssert(o->type == REDIS_HASH && o->encoding != REDIS_ENCODING_HT); + redisAssertWithInfo(NULL,o,o->type == REDIS_HASH && o->encoding != REDIS_ENCODING_HT); p = zipmapRewind(zm); while((p = zipmapNext(p,&key,&klen,&val,&vlen)) != NULL) { robj *keyobj, *valobj;