mirror of
https://github.com/fluencelabs/redis
synced 2025-04-10 11:16:06 +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) {
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user