Update target encoding for sorted set from rdb

This commit is contained in:
Pieter Noordhuis 2011-04-06 16:38:29 +02:00
parent a6ca3077d4
commit 26d798bbf3

View File

@ -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 {