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
9872af6d
Commit
9872af6d
authored
Oct 22, 2018
by
antirez
Browse files
Use guide comments to make changes in #5462 more obvious.
parent
3f399c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
9872af6d
...
...
@@ -5181,6 +5181,10 @@ try_again:
}
if
(
ttl
<
1
)
ttl
=
1
;
}
/* Relocate valid (non expired) keys into the array in successive
* positions to remove holes created by the keys that were present
* in the first lookup but are now expired after the second lookup. */
kv
[
non_expired
++
]
=
kv
[
j
];
serverAssertWithInfo
(
c
,
NULL
,
...
...
@@ -5209,6 +5213,8 @@ try_again:
if
(
replace
)
serverAssertWithInfo
(
c
,
NULL
,
rioWriteBulkString
(
&
cmd
,
"REPLACE"
,
7
));
}
/* Fix the actual number of keys we are migrating. */
num_keys
=
non_expired
;
/* Transfer the query to the other node in 64K chunks. */
...
...
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