Commit 2df84b72 authored by antirez's avatar antirez
Browse files

intset loading bug fixed

parent ec7e1389
...@@ -702,7 +702,7 @@ robj *rdbLoadObject(int type, FILE *fp) { ...@@ -702,7 +702,7 @@ robj *rdbLoadObject(int type, FILE *fp) {
if (o->encoding == REDIS_ENCODING_INTSET) { if (o->encoding == REDIS_ENCODING_INTSET) {
/* Fetch integer value from element */ /* Fetch integer value from element */
if (getLongLongFromObject(ele,&llval) == REDIS_OK) { if (isObjectRepresentableAsLongLong(ele,&llval) == REDIS_OK) {
o->ptr = intsetAdd(o->ptr,llval,NULL); o->ptr = intsetAdd(o->ptr,llval,NULL);
} else { } else {
setTypeConvert(o,REDIS_ENCODING_HT); setTypeConvert(o,REDIS_ENCODING_HT);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment