8 Commits

Author SHA1 Message Date
antirez
db845c2818 Test: more MIGRATE tests. 2012-11-14 12:12:52 +01:00
antirez
280fce1099 Test: check if MIGRATE is caching connections. 2012-11-14 10:58:34 +01:00
antirez
7736dc2e0f COPY and REPLACE options for MIGRATE.
With COPY now MIGRATE does not remove the key from the source instance.
With REPLACE it uses RESTORE REPLACE on the target host so that even if
the key already eixsts in the target instance it will be overwritten.

The options can be used together.
2012-11-07 15:32:27 +01:00
antirez
dfeecba041 REPLACE option for RESTORE.
The REPLACE option deletes an existing key with the same name (if any)
and materializes the new one. The default behavior without RESTORE is to
return an error if a key already exists.
2012-11-07 10:57:23 +01:00
Alex Mitrofanov
33700ab2a7 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.
2012-06-02 10:24:27 +02:00
antirez
687fd6e971 More MIGRATE tests. 2012-04-03 15:10:51 +02:00
antirez
28d265901a MIGRATE test modified because the implementation changed. 2012-04-02 16:38:59 +02:00
antirez
264d58460b DUMP, RESTORE, MIGRATE tests. 2012-04-02 11:44:25 +02:00