Cluster: broadcast master/slave replication offset in bus header.

This commit is contained in:
antirez
2014-01-28 16:51:50 +01:00
parent 8b32bd483a
commit befcf6259e
2 changed files with 25 additions and 10 deletions

View File

@ -178,6 +178,8 @@ typedef struct {
uint64_t configEpoch; /* The config epoch if it's a master, or the last
epoch advertised by its master if it is a
slave. */
uint64_t offset; /* Master replication offset if node is a master or
processed replication offset if node is a slave. */
char sender[REDIS_CLUSTER_NAMELEN]; /* Name of the sender node */
unsigned char myslots[REDIS_CLUSTER_SLOTS/8];
char slaveof[REDIS_CLUSTER_NAMELEN];