mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
Cluster: update node replication offset from bus packets headers.
This commit is contained in:
parent
9d4ded7ec6
commit
40cd38f0c4
@ -1181,6 +1181,9 @@ int clusterProcessPacket(clusterLink *link) {
|
|||||||
sender->configEpoch = senderConfigEpoch;
|
sender->configEpoch = senderConfigEpoch;
|
||||||
clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|CLUSTER_TODO_FSYNC_CONFIG);
|
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. */
|
/* Process packets by type. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user