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
326145b9
Commit
326145b9
authored
Jun 10, 2014
by
antirez
Browse files
Cluster: better comment for clusterSendFailoverAuthIfNeeded() epoch test.
parent
053bcf03
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
326145b9
...
...
@@ -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)"
,
...
...
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