summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-01-28 16:51:50 +0100
committerantirez <antirez@gmail.com>2014-01-28 16:51:50 +0100
commitbefcf6259e1596661a454d1a1013e84178ac9426 (patch)
treed70c2ba66e14ef3fcaf1bf9321e26645db81b67d /src/cluster.h
parent8b32bd483aecb3271aa3527ac869b87342a8a9b6 (diff)
downloadredis-befcf6259e1596661a454d1a1013e84178ac9426.tar.gz
Cluster: broadcast master/slave replication offset in bus header.
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 5cbef33d3..2b8cf0e33 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -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];