Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
70b7fa2c
Unverified
Commit
70b7fa2c
authored
Jun 22, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jun 22, 2018
Browse files
Merge pull request #5049 from youjiali1995/fix-load-rdb
Fix rdbLoadIntegerObject() to create shared objects when needed.
parents
54d66d39
df6644fe
Changes
1
Show whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
70b7fa2c
...
@@ -288,7 +288,7 @@ void *rdbLoadIntegerObject(rio *rdb, int enctype, int flags, size_t *lenptr) {
...
@@ -288,7 +288,7 @@ void *rdbLoadIntegerObject(rio *rdb, int enctype, int flags, size_t *lenptr) {
memcpy
(
p
,
buf
,
len
);
memcpy
(
p
,
buf
,
len
);
return
p
;
return
p
;
}
else
if
(
encode
)
{
}
else
if
(
encode
)
{
return
createStringObjectFromLongLong
(
val
);
return
createStringObjectFromLongLong
ForValue
(
val
);
}
else
{
}
else
{
return
createObject
(
OBJ_STRING
,
sdsfromlonglong
(
val
));
return
createObject
(
OBJ_STRING
,
sdsfromlonglong
(
val
));
}
}
...
...
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