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
9e7a8c02
Commit
9e7a8c02
authored
Jul 20, 2017
by
Leon Chen
Committed by
GitHub
Jul 20, 2017
Browse files
fix return wrong value of clusterDelNodeSlots
parent
2cdf4cc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
9e7a8c02
...
...
@@ -3600,8 +3600,10 @@ int clusterDelNodeSlots(clusterNode *node) {
int
deleted
=
0
,
j
;
for
(
j
=
0
;
j
<
CLUSTER_SLOTS
;
j
++
)
{
if
(
clusterNodeGetSlotBit
(
node
,
j
))
clusterDelSlot
(
j
);
deleted
++
;
if
(
clusterNodeGetSlotBit
(
node
,
j
))
{
clusterDelSlot
(
j
);
deleted
++
;
}
}
return
deleted
;
}
...
...
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