mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 07:41:04 +00:00
MOVE re-add TTL check fixed.
getExpire() returns -1 when no expire exists. Related to #2765.
This commit is contained in:
parent
f529a01c1b
commit
4fec5ee165
2
src/db.c
2
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user