X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/26117e84f01022b261452d6cae54616d08a31074..42b2621cdc4dfc47f90cf1085761ad89171a6a60:/src/rdb.c 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;