X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0caa75074875ca5c13274accdd032c90db93b3c1..994ed2bc552f4114b1f0c8dd3fd8aefaec6beeae:/src/cluster.c diff --git a/src/cluster.c b/src/cluster.c index 3e65af78..e608c420 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1390,7 +1390,7 @@ void restoreCommand(redisClient *c) { long ttl; /* Make sure this key does not already exist here... */ - if (dbExists(c->db,c->argv[1])) { + if (lookupKeyWrite(c->db,c->argv[1]) != NULL) { addReplyError(c,"Target key name is busy."); return; }