mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Cluster: better comment for clusterSendFailoverAuthIfNeeded() epoch test.
This commit is contained in:
parent
605303d9c6
commit
58799718be
@ -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)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user