Skip to content

Commit

Permalink
Cluster: add announce ip field in messages header.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jan 29, 2016
1 parent 8870a7e commit a455e4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cluster.h
Expand Up @@ -219,7 +219,7 @@ union clusterMsgData {
} update;
};

#define CLUSTER_PROTO_VER 0 /* Cluster bus protocol version. */
#define CLUSTER_PROTO_VER 1 /* Cluster bus protocol version. */

typedef struct {
char sig[4]; /* Siganture "RCmb" (Redis Cluster message bus). */
Expand All @@ -237,7 +237,8 @@ typedef struct {
char sender[CLUSTER_NAMELEN]; /* Name of the sender node */
unsigned char myslots[CLUSTER_SLOTS/8];
char slaveof[CLUSTER_NAMELEN];
char notused1[32]; /* 32 bytes reserved for future usage. */
char myip[NET_IP_STR_LEN]; /* Sender IP, if not all zeroed. */
char notused1[34]; /* 34 bytes reserved for future usage. */
uint16_t port; /* Sender TCP base port */
uint16_t flags; /* Sender node flags */
unsigned char state; /* Cluster state from the POV of the sender */
Expand Down

0 comments on commit a455e4b

Please sign in to comment.