From: antirez Date: Mon, 7 Jun 2010 16:07:46 +0000 (+0200) Subject: encode integers while loading an hash X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/b785b2bf668b955f6b4a87813ae230e288b2cc78 encode integers while loading an hash --- diff --git a/redis.c b/redis.c index 44b115ea..3e7a17d8 100644 --- a/redis.c +++ b/redis.c @@ -4240,8 +4240,8 @@ static robj *rdbLoadObject(int type, FILE *fp) { while(hashlen--) { robj *key, *val; - if ((key = rdbLoadStringObject(fp)) == NULL) return NULL; - if ((val = rdbLoadStringObject(fp)) == NULL) return NULL; + if ((key = rdbLoadEncodedStringObject(fp)) == NULL) return NULL; + if ((val = rdbLoadEncodedStringObject(fp)) == NULL) return NULL; /* If we are using a zipmap and there are too big values * the object is converted to real hash table encoding. */ if (o->encoding != REDIS_ENCODING_HT &&