• Alex Mitrofanov's avatar
    Fixed RESTORE hash failure (Issue #532) · 51857c7e
    Alex Mitrofanov authored
    (additional commit notes by antirez@gmail.com):
    
    The rdbIsObjectType() macro was not updated when the new RDB object type
    of ziplist encoded hashes was added.
    
    As a result RESTORE, that uses rdbLoadObjectType(), failed when a
    ziplist encoded hash was loaded.
    This does not affected normal RDB loading because in that case we use
    the lower-level function rdbLoadType().
    
    The commit also adds a regression test.
    51857c7e
rdb.h 3.31 KB