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
d427373f
Commit
d427373f
authored
Jun 11, 2013
by
antirez
Browse files
clusterProcessPacket() comments improved for correctness.
parent
cf71b821
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
d427373f
...
@@ -818,7 +818,7 @@ int clusterProcessPacket(clusterLink *link) {
...
@@ -818,7 +818,7 @@ int clusterProcessPacket(clusterLink *link) {
/* Add this node if it is new for us and the msg type is MEET.
/* Add this node if it is new for us and the msg type is MEET.
* In this stage we don't try to add the node with the right
* In this stage we don't try to add the node with the right
* flags, slaveof pointer, and so forth, as this details will be
* flags, slaveof pointer, and so forth, as this details will be
* resolved when we'll receive PONGs from the
server
. */
* resolved when we'll receive PONGs from the
node
. */
if
(
!
sender
&&
type
==
CLUSTERMSG_TYPE_MEET
)
{
if
(
!
sender
&&
type
==
CLUSTERMSG_TYPE_MEET
)
{
clusterNode
*
node
;
clusterNode
*
node
;
...
@@ -894,7 +894,7 @@ int clusterProcessPacket(clusterLink *link) {
...
@@ -894,7 +894,7 @@ int clusterProcessPacket(clusterLink *link) {
link
->
node
->
ping_sent
=
0
;
link
->
node
->
ping_sent
=
0
;
/* The PFAIL condition can be reversed without external
/* The PFAIL condition can be reversed without external
* help if it is
not transitive
(that is, if it does not
* help if it is
momentary
(that is, if it does not
* turn into a FAIL state).
* turn into a FAIL state).
*
*
* The FAIL condition is also reversible under specific
* The FAIL condition is also reversible under specific
...
...
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