From: antirez Date: Mon, 28 Feb 2011 14:13:49 +0000 (+0100) Subject: fix for zipmap raw saving in unstable branch X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/1187b0a56e4458d49250c1121d53275b8f837694 fix for zipmap raw saving in unstable branch --- diff --git a/src/rdb.c b/src/rdb.c index 06d72a99..14135480 100644 --- 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; /* Save type, key, value */ - if (rdbSaveType(fp,val->type) == -1) return -1; + if (rdbSaveType(fp,vtype) == -1) return -1; if (rdbSaveStringObject(fp,key) == -1) return -1; if (rdbSaveObject(fp,val) == -1) return -1; return 1;