diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2018-06-22 15:47:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 15:47:45 +0200 |
commit | 70b7fa2c52648e4dec9e0e251163bd1aa413a90c (patch) | |
tree | 5304702fdcca739ed01c083b40b488d7c2072a74 /src/rdb.c | |
parent | 54d66d39a0ac476eee08c75b8e7e238fac5b2803 (diff) | |
parent | df6644fe0e858e40ea61c576597c51ddc82feef9 (diff) | |
download | redis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } |