Commit 5fd2dc31 authored by antirez's avatar antirez
Browse files

MOVE re-add TTL check fixed.

getExpire() returns -1 when no expire exists.

Related to #2765.
parent 37843be9
......@@ -737,7 +737,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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment