intset loading bug fixed

This commit is contained in:
antirez 2010-08-26 19:10:40 +02:00
parent ec7e138926
commit 2df84b7269

View File

@ -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);