diff options
author | antirez <antirez@gmail.com> | 2015-03-21 12:12:23 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-03-21 18:23:10 +0100 |
commit | 1641f41cfcfc6485d7eb0ce0270538f386c44802 (patch) | |
tree | dc71dc574aef5c3873035496b89c92bae18afee0 | |
parent | b37b2b5c14803a555633b55f50655bcf784bf37d (diff) | |
download | redis-1641f41cfcfc6485d7eb0ce0270538f386c44802.tar.gz |
Two cluster.c comments improved.
-rw-r--r-- | src/cluster.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cluster.c b/src/cluster.c index 17270b0f4..e1ae92f02 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -917,7 +917,8 @@ void clusterRenameNode(clusterNode *node, char *newname) { * 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 max = 0; dictIterator *di; @@ -3634,7 +3635,7 @@ sds clusterGenNodeDescription(clusterNode *node) { else 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", (long long) node->ping_sent, (long long) node->pong_received, |