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
e0918a33
Commit
e0918a33
authored
Apr 23, 2014
by
Salvatore Sanfilippo
Browse files
Merge pull request #1701 from kingsumos/node_description
fix cluster node description showing wrong slot allocation
parents
cb4e2ee9
a69178fd
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
e0918a33
...
...
@@ -3131,7 +3131,7 @@ sds clusterGenNodeDescription(clusterNode *node) {
if
(
start
==
-
1
)
start
=
j
;
}
if
(
start
!=
-
1
&&
(
!
bit
||
j
==
REDIS_CLUSTER_SLOTS
-
1
))
{
if
(
j
==
REDIS_CLUSTER_SLOTS
-
1
)
j
++
;
if
(
bit
&&
j
==
REDIS_CLUSTER_SLOTS
-
1
)
j
++
;
if
(
start
==
j
-
1
)
{
ci
=
sdscatprintf
(
ci
,
" %d"
,
start
);
...
...
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