]> git.saurik.com Git - redis.git/blobdiff - src/cluster.c
enable zmalloc thread safety support now that we have the bio.c background thread.
[redis.git] / src / cluster.c
index 3e65af7899e05f071585437ed5ac42ba5995193b..e608c420c5df66fe2bdaba848a61e79fb5ccb599 100644 (file)
@@ -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;
     }