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
08db7092
Commit
08db7092
authored
Jan 14, 2016
by
antirez
Browse files
Cluster: clarify node->slave may be NULL.
parent
bcc556eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.h
View file @
08db7092
...
@@ -88,7 +88,10 @@ typedef struct clusterNode {
...
@@ -88,7 +88,10 @@ typedef struct clusterNode {
int
numslots
;
/* Number of slots handled by this node */
int
numslots
;
/* Number of slots handled by this node */
int
numslaves
;
/* Number of slave nodes, if this is a master */
int
numslaves
;
/* Number of slave nodes, if this is a master */
struct
clusterNode
**
slaves
;
/* pointers to slave nodes */
struct
clusterNode
**
slaves
;
/* pointers to slave nodes */
struct
clusterNode
*
slaveof
;
/* pointer to the master node */
struct
clusterNode
*
slaveof
;
/* pointer to the master node. Note that it
may be NULL even if the node is a slave
if we don't have the master node in our
tables. */
mstime_t
ping_sent
;
/* Unix time we sent latest ping */
mstime_t
ping_sent
;
/* Unix time we sent latest ping */
mstime_t
pong_received
;
/* Unix time we received the pong */
mstime_t
pong_received
;
/* Unix time we received the pong */
mstime_t
fail_time
;
/* Unix time when FAIL flag was set */
mstime_t
fail_time
;
/* Unix time when FAIL flag was set */
...
...
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