]> git.saurik.com Git - redis.git/commitdiff
define name typo fixed
authorantirez <antirez@gmail.com>
Mon, 28 Feb 2011 16:36:12 +0000 (17:36 +0100)
committerantirez <antirez@gmail.com>
Mon, 28 Feb 2011 16:36:12 +0000 (17:36 +0100)
src/rdb.c

index 3749188973a74e0dc4971bc7b116ba79a9209288..4ace4528d9f24cdfc2aa014ad34c35d46b16c31c 100644 (file)
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -407,7 +407,7 @@ int rdbSaveKeyValuePair(FILE *fp, robj *key, robj *val,
     if (vtype == REDIS_HASH && val->encoding == REDIS_ENCODING_ZIPMAP)
         vtype = REDIS_HASH_ZIPMAP;
     else if (vtype == REDIS_LIST && val->encoding == REDIS_ENCODING_ZIPLIST)
-        vtype = REDIS_HASH_ZIPLIST;
+        vtype = REDIS_LIST_ZIPLIST;
     /* Save type, key, value */
     if (rdbSaveType(fp,vtype) == -1) return -1;
     if (rdbSaveStringObject(fp,key) == -1) return -1;