summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-06-10 17:20:16 +0200
committerantirez <antirez@gmail.com>2014-06-10 17:20:21 +0200
commit58799718be9e79ea9279f5cbc211ce4d483ba010 (patch)
tree5294ec535f9b5bcd4e9ccd4c4e98b581268c58d1
parent605303d9c675d2b4dd1bc65f2f3e7f1884909500 (diff)
downloadredis-58799718be9e79ea9279f5cbc211ce4d483ba010.tar.gz
Cluster: better comment for clusterSendFailoverAuthIfNeeded() epoch test.
-rw-r--r--src/cluster.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c
index 8fc500f16..7800ec236 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -2288,7 +2288,10 @@ void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request) {
* size + 1 */
if (nodeIsSlave(myself) || myself->numslots == 0) return;
- /* Request epoch must be >= our currentEpoch. */
+ /* Request epoch must be >= our currentEpoch.
+ * Note that it is impossible for it to actually be greater since
+ * our currentEpoch was updated as a side effect of receiving this
+ * request, if the request epoch was greater. */
if (requestCurrentEpoch < server.cluster->currentEpoch) {
redisLog(REDIS_WARNING,
"Failover auth denied to %.40s: reqEpoch (%llu) < curEpoch(%llu)",