mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Update target encoding for sorted set from rdb
This commit is contained in:
parent
100ed062c0
commit
d4d3a70da2
@ -875,10 +875,10 @@ robj *rdbLoadObject(int type, FILE *fp) {
|
|||||||
o->type = REDIS_ZSET;
|
o->type = REDIS_ZSET;
|
||||||
o->encoding = REDIS_ENCODING_ZIPLIST;
|
o->encoding = REDIS_ENCODING_ZIPLIST;
|
||||||
if (zsetLength(o) > server.zset_max_ziplist_entries)
|
if (zsetLength(o) > server.zset_max_ziplist_entries)
|
||||||
zsetConvert(o,REDIS_ENCODING_RAW);
|
zsetConvert(o,REDIS_ENCODING_SKIPLIST);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
redisPanic("Unknown enoding");
|
redisPanic("Unknown encoding");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user