Update target encoding for sorted set from rdb
This commit is contained in:
parent
a6ca3077d4
commit
26d798bbf3
@ -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