mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
save ziplist encoded type as a different type id. Done as separated commit since this is the part that will not merge cleanly in 2.2
This commit is contained in:
parent
f8956ed6d8
commit
9fa7beb515
@ -406,6 +406,8 @@ int rdbSaveKeyValuePair(FILE *fp, robj *key, robj *val,
|
||||
vtype = val->type;
|
||||
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;
|
||||
/* Save type, key, value */
|
||||
if (rdbSaveType(fp,vtype) == -1) return -1;
|
||||
if (rdbSaveStringObject(fp,key) == -1) return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user