diff --git a/src/db.c b/src/db.c index df2e50ca..a907c04d 100644 --- a/src/db.c +++ b/src/db.c @@ -785,7 +785,7 @@ void moveCommand(client *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 */