Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bd80291c
Commit
bd80291c
authored
Oct 08, 2018
by
artix
Committed by
antirez
Nov 07, 2018
Browse files
Cluster Manager: fixed typos in comments.
parent
4369cbce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
bd80291c
...
...
@@ -3775,7 +3775,7 @@ static int clusterManagerFixOpenSlot(int slot) {
}
printf
(
"Set as migrating in: %s
\n
"
,
migrating_str
);
printf
(
"Set as importing in: %s
\n
"
,
importing_str
);
/* If there is no slot owner, set as owner the
slot
with the biggest
/* If there is no slot owner, set as owner the
node
with the biggest
* number of keys, among the set of migrating / importing nodes. */
if
(
owner
==
NULL
)
{
clusterManagerLogInfo
(
">>> Nobody claims ownership, "
...
...
@@ -3848,8 +3848,8 @@ static int clusterManagerFixOpenSlot(int slot) {
if
(
!
success
)
goto
cleanup
;
}
int
move_opts
=
CLUSTER_MANAGER_OPT_VERBOSE
;
/* Case 1: The slot is in migrating state in one
slot
, and in
* importing state in 1
slot
. That's trivial to address. */
/* Case 1: The slot is in migrating state in one
node
, and in
* importing state in 1
node
. That's trivial to address. */
if
(
listLength
(
migrating
)
==
1
&&
listLength
(
importing
)
==
1
)
{
clusterManagerNode
*
src
=
listFirst
(
migrating
)
->
value
;
clusterManagerNode
*
dst
=
listFirst
(
importing
)
->
value
;
...
...
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