Add a 24bit integer to ziplists to save one byte for ints that can

fit in 24 bits (thanks to antirez for catching and solving the two's compliment
bug).

Increment REDIS_RDB_VERSION to 6
This commit is contained in:
Grisha Trubetskoy
2012-04-20 10:38:42 -04:00
committed by antirez
parent 21661d7acc
commit 5a86ab4799
2 changed files with 17 additions and 1 deletions

View File

@ -9,7 +9,7 @@
/* The current RDB version. When the format changes in a way that is no longer
* backward compatible this number gets incremented. */
#define REDIS_RDB_VERSION 5
#define REDIS_RDB_VERSION 6
/* Defines related to the dump file format. To store 32 bits lengths for short
* keys requires a lot of space, so we check the most significant 2 bits of