Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4fec5ee1
Commit
4fec5ee1
authored
Sep 14, 2015
by
antirez
Browse files
MOVE re-add TTL check fixed.
getExpire() returns -1 when no expire exists. Related to #2765.
parent
f529a01c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
4fec5ee1
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment