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
40cd38f0
Commit
40cd38f0
authored
Jan 29, 2014
by
antirez
Browse files
Cluster: update node replication offset from bus packets headers.
parent
9d4ded7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
40cd38f0
...
...
@@ -1181,6 +1181,9 @@ int clusterProcessPacket(clusterLink *link) {
sender->configEpoch = senderConfigEpoch;
clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|CLUSTER_TODO_FSYNC_CONFIG);
}
/* Update the replication offset info for this node. */
sender->repl_offset = ntohu64(hdr->offset);
sender->repl_offset_time = mstime();
}
/* 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