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
a55c7868
Commit
a55c7868
authored
Apr 07, 2011
by
antirez
Browse files
fixed lame error in slot assignment
parent
5a547b27
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
a55c7868
...
@@ -991,7 +991,7 @@ int clusterNodeGetSlotBit(clusterNode *n, int slot) {
...
@@ -991,7 +991,7 @@ int clusterNodeGetSlotBit(clusterNode *n, int slot) {
* an error and REDIS_ERR is returned. */
* an error and REDIS_ERR is returned. */
int
clusterAddSlot
(
clusterNode
*
n
,
int
slot
)
{
int
clusterAddSlot
(
clusterNode
*
n
,
int
slot
)
{
redisAssert
(
clusterNodeSetSlotBit
(
n
,
slot
)
==
0
);
redisAssert
(
clusterNodeSetSlotBit
(
n
,
slot
)
==
0
);
server
.
cluster
.
slots
[
slot
]
=
server
.
cluster
.
myself
;
server
.
cluster
.
slots
[
slot
]
=
n
;
printf
(
"SLOT %d added to %.40s
\n
"
,
slot
,
n
->
name
);
printf
(
"SLOT %d added to %.40s
\n
"
,
slot
,
n
->
name
);
return
REDIS_OK
;
return
REDIS_OK
;
}
}
...
...
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