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
e2c0d896
Commit
e2c0d896
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
5b6c7647
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
e2c0d896
...
...
@@ -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 */
...
...
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