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
1a0cea33
Commit
1a0cea33
authored
Nov 05, 2013
by
antirez
Browse files
Cluster: initialize senderConfigEpoch and senderCurrentEpoch for warnings suppression.
parent
eb95d288
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
1a0cea33
...
...
@@ -869,7 +869,7 @@ int clusterProcessPacket(clusterLink *link) {
uint32_t
totlen
=
ntohl
(
hdr
->
totlen
);
uint16_t
type
=
ntohs
(
hdr
->
type
);
uint16_t
flags
=
ntohs
(
hdr
->
flags
);
uint64_t
senderCurrentEpoch
,
senderConfigEpoch
;
uint64_t
senderCurrentEpoch
=
0
,
senderConfigEpoch
=
0
;
clusterNode
*
sender
;
server
.
cluster
->
stats_bus_messages_received
++
;
...
...
@@ -1684,7 +1684,7 @@ void clusterHandleSlaveFailover(void) {
server
.
cluster
->
currentEpoch
++
;
server
.
cluster
->
failover_auth_epoch
=
server
.
cluster
->
currentEpoch
;
redisLog
(
REDIS_WARNING
,
"Starting a failover election for epoch %llu."
,
server
.
cluster
->
currentEpoch
);
(
unsigned
long
long
)
server
.
cluster
->
currentEpoch
);
clusterRequestFailoverAuth
();
server
.
cluster
->
failover_auth_sent
=
1
;
clusterDoBeforeSleep
(
CLUSTER_TODO_SAVE_CONFIG
|
...
...
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