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

Update target encoding for sorted set from rdb

上级 100ed062
...@@ -875,10 +875,10 @@ robj *rdbLoadObject(int type, FILE *fp) { ...@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册