mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
intset loading bug fixed
This commit is contained in:
parent
ec7e138926
commit
2df84b7269
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user