Cluster: added signature + version in bus packets.

This commit is contained in:
antirez
2014-02-10 15:53:09 +01:00
parent ff6a75a0c1
commit 0ee1a78c86
2 changed files with 10 additions and 1 deletions

View File

@ -195,6 +195,9 @@ union clusterMsgData {
typedef struct {
char sig[4]; /* Siganture "RCib" (Redis Cluster internal bus). */
uint16_t ver; /* Protocol version, currently set to 0. */
uint16_t notused0; /* 2 bytes not used. */
uint32_t totlen; /* Total length of this message */
uint16_t type; /* Message type */
uint16_t count; /* Only used for some kind of messages. */