]> git.saurik.com Git - redis.git/commit - src/cluster.c
COPY and REPLACE options for MIGRATE.
authorantirez <antirez@gmail.com>
Wed, 7 Nov 2012 14:32:27 +0000 (15:32 +0100)
committerantirez <antirez@gmail.com>
Wed, 7 Nov 2012 14:32:27 +0000 (15:32 +0100)
commit1237d71c4e4a9c617d0c8ce8049e16326e647cfe
treeaa877ec458cc62b333ff775adeebda42106ed00e
parente5b5763f56d1379069c94ce7196c1a412bb44fba
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.
src/cluster.c
src/redis.c
tests/unit/dump.tcl