From: antirez Date: Thu, 26 Aug 2010 17:10:40 +0000 (+0200) Subject: intset loading bug fixed X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/2df84b726983ae1f4fc9c16da61d5a0ce5114cc4 intset loading bug fixed --- diff --git a/src/rdb.c b/src/rdb.c index 96c5a09d..d8de5f76 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);