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
94030fa4
Commit
94030fa4
authored
Mar 21, 2015
by
antirez
Browse files
Two cluster.c comments improved.
parent
2950824a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
94030fa4
...
@@ -917,7 +917,8 @@ void clusterRenameNode(clusterNode *node, char *newname) {
...
@@ -917,7 +917,8 @@ void clusterRenameNode(clusterNode *node, char *newname) {
* CLUSTER config epoch handling
* CLUSTER config epoch handling
* -------------------------------------------------------------------------- */
* -------------------------------------------------------------------------- */
/* Return the greatest configEpoch found in the cluster. */
/* Return the greatest configEpoch found in the cluster, or the current
* epoch if greater than any node configEpoch. */
uint64_t
clusterGetMaxEpoch
(
void
)
{
uint64_t
clusterGetMaxEpoch
(
void
)
{
uint64_t
max
=
0
;
uint64_t
max
=
0
;
dictIterator
*
di
;
dictIterator
*
di
;
...
@@ -3634,7 +3635,7 @@ sds clusterGenNodeDescription(clusterNode *node) {
...
@@ -3634,7 +3635,7 @@ sds clusterGenNodeDescription(clusterNode *node) {
else
else
ci
=
sdscatlen
(
ci
,
" - "
,
3
);
ci
=
sdscatlen
(
ci
,
" - "
,
3
);
/* Latency from the POV of this node, link status */
/* Latency from the POV of this node,
config epoch,
link status */
ci
=
sdscatprintf
(
ci
,
"%lld %lld %llu %s"
,
ci
=
sdscatprintf
(
ci
,
"%lld %lld %llu %s"
,
(
long
long
)
node
->
ping_sent
,
(
long
long
)
node
->
ping_sent
,
(
long
long
)
node
->
pong_received
,
(
long
long
)
node
->
pong_received
,
...
...
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