Commit d4d3a70d authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Update target encoding for sorted set from rdb

parent 100ed062
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment