Use modern typedef form in cluster.h.
This commit is contained in:
parent
8eeb1802ec
commit
119a7000b5
@ -62,12 +62,12 @@ typedef struct clusterLink {
|
|||||||
#define nodeFailed(n) ((n)->flags & REDIS_NODE_FAIL)
|
#define nodeFailed(n) ((n)->flags & REDIS_NODE_FAIL)
|
||||||
|
|
||||||
/* This structure represent elements of node->fail_reports. */
|
/* This structure represent elements of node->fail_reports. */
|
||||||
struct clusterNodeFailReport {
|
typedef struct clusterNodeFailReport {
|
||||||
struct clusterNode *node; /* Node reporting the failure condition. */
|
struct clusterNode *node; /* Node reporting the failure condition. */
|
||||||
mstime_t time; /* Time of the last report from this node. */
|
mstime_t time; /* Time of the last report from this node. */
|
||||||
} typedef clusterNodeFailReport;
|
} clusterNodeFailReport;
|
||||||
|
|
||||||
struct clusterNode {
|
typedef struct clusterNode {
|
||||||
mstime_t ctime; /* Node object creation time. */
|
mstime_t ctime; /* Node object creation time. */
|
||||||
char name[REDIS_CLUSTER_NAMELEN]; /* Node name, hex string, sha1-size */
|
char name[REDIS_CLUSTER_NAMELEN]; /* Node name, hex string, sha1-size */
|
||||||
int flags; /* REDIS_NODE_... */
|
int flags; /* REDIS_NODE_... */
|
||||||
@ -87,8 +87,7 @@ struct clusterNode {
|
|||||||
int port; /* Latest known port of this node */
|
int port; /* Latest known port of this node */
|
||||||
clusterLink *link; /* TCP/IP link with this node */
|
clusterLink *link; /* TCP/IP link with this node */
|
||||||
list *fail_reports; /* List of nodes signaling this as failing */
|
list *fail_reports; /* List of nodes signaling this as failing */
|
||||||
};
|
} clusterNode;
|
||||||
typedef struct clusterNode clusterNode;
|
|
||||||
|
|
||||||
typedef struct clusterState {
|
typedef struct clusterState {
|
||||||
clusterNode *myself; /* This node */
|
clusterNode *myself; /* This node */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user