提交 40cd38f0 编写于 作者: A antirez

Cluster: update node replication offset from bus packets headers.

上级 9d4ded7e
......@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册