mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 04:01:22 +00:00
MOVE re-add TTL check fixed.
getExpire() returns -1 when no expire exists. Related to #2765.
This commit is contained in:
2
src/db.c
2
src/db.c
@ -756,7 +756,7 @@ void moveCommand(redisClient *c) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dbAdd(dst,c->argv[1],o);
|
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);
|
incrRefCount(o);
|
||||||
|
|
||||||
/* OK! key moved, free the entry in the source DB */
|
/* OK! key moved, free the entry in the source DB */
|
||||||
|
Reference in New Issue
Block a user