From 1213abe477e7eefcb1d1694f7ba99b8eb3016e99 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 28 Feb 2011 17:55:05 +0100 Subject: [PATCH] fix type in rdbSaveKeyValuePair() when saving an intset. Don't merge this commit into 2.2 as will not apply cleanly. --- src/rdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rdb.c b/src/rdb.c index fcf97d33..c9fb3e83 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -384,6 +384,8 @@ int rdbSaveKeyValuePair(FILE *fp, robj *key, robj *val, vtype = REDIS_HASH_ZIPMAP; else if (vtype == REDIS_LIST && val->encoding == REDIS_ENCODING_ZIPLIST) vtype = REDIS_LIST_ZIPLIST; + else if (vtype == REDIS_SET && val->encoding == REDIS_ENCODING_INTSET) + vtype = REDIS_SET_INTSET; /* Save type, key, value */ if (rdbSaveType(fp,vtype) == -1) return -1; if (rdbSaveStringObject(fp,key) == -1) return -1;