Cluster: added signature + version in bus packets.

This commit is contained in:
antirez
2014-02-10 15:53:09 +01:00
parent 100cd7b21e
commit 007e1c7cb2
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. */