mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
DB API refactoring. The changes were designed together with Pieter Noordhuis.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user