diff --git a/src/db.c b/src/db.c index 5cb9463f..c74cde24 100644 --- a/src/db.c +++ b/src/db.c @@ -756,7 +756,7 @@ void moveCommand(redisClient *c) { return; } dbAdd(dst,c->argv[1],o); - if (expire) setExpire(dst,c->argv[1],expire); + if (expire != -1) setExpire(dst,c->argv[1],expire); incrRefCount(o); /* OK! key moved, free the entry in the source DB */