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
8b32bd48
Commit
8b32bd48
authored
Jan 28, 2014
by
antirez
Browse files
Cluster: limit cluster.h to 80 cols.
parent
0b1b25c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.h
View file @
8b32bd48
...
@@ -175,8 +175,9 @@ typedef struct {
...
@@ -175,8 +175,9 @@ typedef struct {
uint16_t
type
;
/* Message type */
uint16_t
type
;
/* Message type */
uint16_t
count
;
/* Only used for some kind of messages. */
uint16_t
count
;
/* Only used for some kind of messages. */
uint64_t
currentEpoch
;
/* The epoch accordingly to the sending node. */
uint64_t
currentEpoch
;
/* The epoch accordingly to the sending node. */
uint64_t
configEpoch
;
/* The config epoch if it's a master, or the last epoch
uint64_t
configEpoch
;
/* The config epoch if it's a master, or the last
advertised by its master if it is a slave. */
epoch advertised by its master if it is a
slave. */
char
sender
[
REDIS_CLUSTER_NAMELEN
];
/* Name of the sender node */
char
sender
[
REDIS_CLUSTER_NAMELEN
];
/* Name of the sender node */
unsigned
char
myslots
[
REDIS_CLUSTER_SLOTS
/
8
];
unsigned
char
myslots
[
REDIS_CLUSTER_SLOTS
/
8
];
char
slaveof
[
REDIS_CLUSTER_NAMELEN
];
char
slaveof
[
REDIS_CLUSTER_NAMELEN
];
...
@@ -190,7 +191,7 @@ typedef struct {
...
@@ -190,7 +191,7 @@ typedef struct {
#define CLUSTERMSG_MIN_LEN (sizeof(clusterMsg)-sizeof(union clusterMsgData))
#define CLUSTERMSG_MIN_LEN (sizeof(clusterMsg)-sizeof(union clusterMsgData))
/* ----------------------
-
API exported outside cluster.c --------------------
-----
*/
/* ---------------------- API exported outside cluster.c -------------------- */
clusterNode
*
getNodeByQuery
(
redisClient
*
c
,
struct
redisCommand
*
cmd
,
robj
**
argv
,
int
argc
,
int
*
hashslot
,
int
*
ask
);
clusterNode
*
getNodeByQuery
(
redisClient
*
c
,
struct
redisCommand
*
cmd
,
robj
**
argv
,
int
argc
,
int
*
hashslot
,
int
*
ask
);
#endif
/* __REDIS_CLUSTER_H */
#endif
/* __REDIS_CLUSTER_H */
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