mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
encode integers while loading an hash
This commit is contained in:
parent
65cc766581
commit
b785b2bf66
4
redis.c
4
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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user