Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a455e4b9
Commit
a455e4b9
authored
Jan 19, 2016
by
antirez
Browse files
Cluster: add announce ip field in messages header.
parent
8870a7e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.h
View file @
a455e4b9
...
...
@@ -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). */
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment