提交 d4d3a70d 编写于 作者: P Pieter Noordhuis

Update target encoding for sorted set from rdb

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册