diff options
author | antirez <antirez@gmail.com> | 2010-08-26 19:10:40 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-08-26 19:10:40 +0200 |
commit | 2df84b726983ae1f4fc9c16da61d5a0ce5114cc4 (patch) | |
tree | 7662062a835f05deec87d4beb533693606321a35 | |
parent | ec7e138926b7b587adc247e8c64da6d3b1706434 (diff) | |
download | redis-2df84b726983ae1f4fc9c16da61d5a0ce5114cc4.tar.gz |
intset loading bug fixed
-rw-r--r-- | src/rdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |