summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-08-26 19:10:40 +0200
committerantirez <antirez@gmail.com>2010-08-26 19:10:40 +0200
commit2df84b726983ae1f4fc9c16da61d5a0ce5114cc4 (patch)
tree7662062a835f05deec87d4beb533693606321a35
parentec7e138926b7b587adc247e8c64da6d3b1706434 (diff)
downloadredis-2df84b726983ae1f4fc9c16da61d5a0ce5114cc4.tar.gz
intset loading bug fixed
-rw-r--r--src/rdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rdb.c b/src/rdb.c
index 96c5a09d2..d8de5f767 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -702,7 +702,7 @@ robj *rdbLoadObject(int type, FILE *fp) {
if (o->encoding == REDIS_ENCODING_INTSET) {
/* Fetch integer value from element */
- if (getLongLongFromObject(ele,&llval) == REDIS_OK) {
+ if (isObjectRepresentableAsLongLong(ele,&llval) == REDIS_OK) {
o->ptr = intsetAdd(o->ptr,llval,NULL);
} else {
setTypeConvert(o,REDIS_ENCODING_HT);