summaryrefslogtreecommitdiff
path: root/src/rdb.c
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2018-06-22 15:47:45 +0200
committerGitHub <noreply@github.com>2018-06-22 15:47:45 +0200
commit70b7fa2c52648e4dec9e0e251163bd1aa413a90c (patch)
tree5304702fdcca739ed01c083b40b488d7c2072a74 /src/rdb.c
parent54d66d39a0ac476eee08c75b8e7e238fac5b2803 (diff)
parentdf6644fe0e858e40ea61c576597c51ddc82feef9 (diff)
downloadredis-70b7fa2c52648e4dec9e0e251163bd1aa413a90c.tar.gz
Merge pull request #5049 from youjiali1995/fix-load-rdb
Fix rdbLoadIntegerObject() to create shared objects when needed.
Diffstat (limited to 'src/rdb.c')
-rw-r--r--src/rdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rdb.c b/src/rdb.c
index db27a77b9..8836b9cb3 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -288,7 +288,7 @@ void *rdbLoadIntegerObject(rio *rdb, int enctype, int flags, size_t *lenptr) {
memcpy(p,buf,len);
return p;
} else if (encode) {
- return createStringObjectFromLongLong(val);
+ return createStringObjectFromLongLongForValue(val);
} else {
return createObject(OBJ_STRING,sdsfromlonglong(val));
}