MOVE re-add TTL check fixed.

getExpire() returns -1 when no expire exists.

Related to #2765.
This commit is contained in:
antirez 2015-09-14 12:33:48 +02:00
parent 5b6c764711
commit e2c0d89662

View File

@ -756,7 +756,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 */