Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b785b2bf
Commit
b785b2bf
authored
Jun 07, 2010
by
antirez
Browse files
encode integers while loading an hash
parent
65cc7665
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
b785b2bf
...
@@ -4240,8 +4240,8 @@ static robj *rdbLoadObject(int type, FILE *fp) {
...
@@ -4240,8 +4240,8 @@ static robj *rdbLoadObject(int type, FILE *fp) {
while(hashlen--) {
while(hashlen--) {
robj *key, *val;
robj *key, *val;
if
((
key
=
rdbLoadStringObject
(
fp
))
==
NULL
)
return
NULL
;
if ((key = rdbLoad
Encoded
StringObject(fp)) == NULL) return NULL;
if
((
val
=
rdbLoadStringObject
(
fp
))
==
NULL
)
return
NULL
;
if ((val = rdbLoad
Encoded
StringObject(fp)) == NULL) return NULL;
/* If we are using a zipmap and there are too big values
/* If we are using a zipmap and there are too big values
* the object is converted to real hash table encoding. */
* the object is converted to real hash table encoding. */
if (o->encoding != REDIS_ENCODING_HT &&
if (o->encoding != REDIS_ENCODING_HT &&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment