X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/041d8e2a5c3b36ff4661fb0444ebc48d24a33541..f9c6f39b2b0039cf29df6597d41c124048c825cd:/src/cluster.c diff --git a/src/cluster.c b/src/cluster.c index 1c0b1c23..c6fc44b1 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1389,7 +1389,7 @@ void restoreCommand(redisClient *c) { robj *obj; /* 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; }