提交 4fec5ee1 编写于 作者: A antirez

MOVE re-add TTL check fixed.

getExpire() returns -1 when no expire exists.

Related to #2765.
上级 f529a01c
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册