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
28071caf
Commit
28071caf
authored
Nov 08, 2013
by
antirez
Browse files
Cluster: send a single UPDATE packet for now.
parent
d289c628
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
28071caf
...
@@ -1210,6 +1210,11 @@ int clusterProcessPacket(clusterLink *link) {
...
@@ -1210,6 +1210,11 @@ int clusterProcessPacket(clusterLink *link) {
"an UPDATE message about %.40s
\n
"
,
"an UPDATE message about %.40s
\n
"
,
sender
->
name
,
server
.
cluster
->
slots
[
j
]
->
name
);
sender
->
name
,
server
.
cluster
->
slots
[
j
]
->
name
);
clusterSendUpdate
(
sender
->
link
,
server
.
cluster
->
slots
[
j
]);
clusterSendUpdate
(
sender
->
link
,
server
.
cluster
->
slots
[
j
]);
/* TODO: instead of exiting the loop send every other
* UPDATE packet for other nodes that are the new owner
* of sender's slots. */
break
;
}
}
}
}
}
}
...
...
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