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
c9f0456d
Commit
c9f0456d
authored
Dec 14, 2016
by
Salvatore Sanfilippo
Committed by
GitHub
Dec 14, 2016
Browse files
Merge pull request #3673 from badboy/reset-ttl-on-migrating
Reset the ttl for additional keys
parents
dee11eba
2a32f037
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
c9f0456d
...
...
@@ -4841,6 +4841,7 @@ try_again:
/* Create RESTORE payload and generate the protocol to call the command. */
for
(
j
=
0
;
j
<
num_keys
;
j
++
)
{
ttl
=
0
;
expireat
=
getExpire
(
c
->
db
,
kv
[
j
]);
if
(
expireat
!=
-
1
)
{
ttl
=
expireat
-
mstime
();
...
...
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