mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +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->encoding = REDIS_ENCODING_ZIPLIST;
|
||||
if (zsetLength(o) > server.zset_max_ziplist_entries)
|
||||
zsetConvert(o,REDIS_ENCODING_RAW);
|
||||
zsetConvert(o,REDIS_ENCODING_SKIPLIST);
|
||||
break;
|
||||
default:
|
||||
redisPanic("Unknown enoding");
|
||||
redisPanic("Unknown encoding");
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user