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
b1875177
Commit
b1875177
authored
Sep 30, 2013
by
antirez
Browse files
Cluster: when upading the configEpoch for a node, save config on disk ASAP.
parent
03ca9039
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
b1875177
...
...
@@ -924,8 +924,10 @@ int clusterProcessPacket(clusterLink *link) {
if
(
senderCurrentEpoch
>
server
.
cluster
->
currentEpoch
)
server
.
cluster
->
currentEpoch
=
senderCurrentEpoch
;
/* Update the sender configEpoch if it is publishing a newer one. */
if
(
senderConfigEpoch
>
sender
->
configEpoch
)
if
(
senderConfigEpoch
>
sender
->
configEpoch
)
{
sender
->
configEpoch
=
senderConfigEpoch
;
clusterSaveConfigOrDie
();
}
}
/* Process packets by type. */
...
...
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