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
119a7000
Commit
119a7000
authored
Aug 25, 2014
by
antirez
Browse files
Use modern typedef form in cluster.h.
parent
8eeb1802
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.h
View file @
119a7000
...
...
@@ -62,12 +62,12 @@ typedef struct clusterLink {
#define nodeFailed(n) ((n)->flags & REDIS_NODE_FAIL)
/* This structure represent elements of node->fail_reports. */
struct
clusterNodeFailReport
{
typedef
struct
clusterNodeFailReport
{
struct
clusterNode
*
node
;
/* Node reporting the failure condition. */
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. */
char
name
[
REDIS_CLUSTER_NAMELEN
];
/* Node name, hex string, sha1-size */
int
flags
;
/* REDIS_NODE_... */
...
...
@@ -87,8 +87,7 @@ struct clusterNode {
int
port
;
/* Latest known port of this node */
clusterLink
*
link
;
/* TCP/IP link with this node */
list
*
fail_reports
;
/* List of nodes signaling this as failing */
};
typedef
struct
clusterNode
clusterNode
;
}
clusterNode
;
typedef
struct
clusterState
{
clusterNode
*
myself
;
/* This node */
...
...
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