]> git.saurik.com Git - redis.git/commitdiff
Update target encoding for sorted set from rdb
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Wed, 6 Apr 2011 14:38:29 +0000 (16:38 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Wed, 6 Apr 2011 14:38:34 +0000 (16:38 +0200)
src/rdb.c

index 353620f286ff92ae9ade3c3f8c6a91696cfddcfa..2557f5b8dd193dae3e6f5c3aff665d74f098fcd9 100644 (file)
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -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 {