mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Cluster: add announce ip field in messages header.
This commit is contained in:
parent
8870a7e143
commit
a455e4b948
@ -219,7 +219,7 @@ union clusterMsgData {
|
|||||||
} update;
|
} update;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define CLUSTER_PROTO_VER 0 /* Cluster bus protocol version. */
|
#define CLUSTER_PROTO_VER 1 /* Cluster bus protocol version. */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char sig[4]; /* Siganture "RCmb" (Redis Cluster message bus). */
|
char sig[4]; /* Siganture "RCmb" (Redis Cluster message bus). */
|
||||||
@ -237,7 +237,8 @@ typedef struct {
|
|||||||
char sender[CLUSTER_NAMELEN]; /* Name of the sender node */
|
char sender[CLUSTER_NAMELEN]; /* Name of the sender node */
|
||||||
unsigned char myslots[CLUSTER_SLOTS/8];
|
unsigned char myslots[CLUSTER_SLOTS/8];
|
||||||
char slaveof[CLUSTER_NAMELEN];
|
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 port; /* Sender TCP base port */
|
||||||
uint16_t flags; /* Sender node flags */
|
uint16_t flags; /* Sender node flags */
|
||||||
unsigned char state; /* Cluster state from the POV of the sender */
|
unsigned char state; /* Cluster state from the POV of the sender */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user