]> git.saurik.com Git - redis.git/commit - src/rdb.h
Fixed RESTORE hash failure (Issue #532)
authorAlex Mitrofanov <alexm@airg.com>
Sat, 2 Jun 2012 01:48:45 +0000 (18:48 -0700)
committerantirez <antirez@gmail.com>
Sat, 2 Jun 2012 08:24:27 +0000 (10:24 +0200)
commit51857c7e5cc6479323d53778e37a197f7c140fbf
tree89973232f83ab264888ed99f474f51ad01dc397c
parentc7a25200e29f8ea3c1d42152ef22ef2020a1fd06
Fixed RESTORE hash failure (Issue #532)

(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.
src/rdb.h
tests/unit/dump.tcl