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
d5b38347
Commit
d5b38347
authored
Apr 04, 2013
by
antirez
Browse files
Cluster: move REDIS_CLUSTER_FAILOVER_DELAY near other timing defines.
parent
3cc6e7d0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.h
View file @
d5b38347
...
@@ -522,7 +522,6 @@ typedef struct redisOpArray {
...
@@ -522,7 +522,6 @@ typedef struct redisOpArray {
#define REDIS_CLUSTER_FAIL 1
/* The cluster can't work */
#define REDIS_CLUSTER_FAIL 1
/* The cluster can't work */
#define REDIS_CLUSTER_NAMELEN 40
/* sha1 hex length */
#define REDIS_CLUSTER_NAMELEN 40
/* sha1 hex length */
#define REDIS_CLUSTER_PORT_INCR 10000
/* Cluster port = baseport + PORT_INCR */
#define REDIS_CLUSTER_PORT_INCR 10000
/* Cluster port = baseport + PORT_INCR */
#define REDIS_CLUSTER_FAILOVER_DELAY 5
/* Seconds */
/* The following defines are amunt of time, sometimes expressed as
/* The following defines are amunt of time, sometimes expressed as
* multiplicators of the node timeout value (when ending with MULT). */
* multiplicators of the node timeout value (when ending with MULT). */
...
@@ -532,6 +531,7 @@ typedef struct redisOpArray {
...
@@ -532,6 +531,7 @@ typedef struct redisOpArray {
#define REDIS_CLUSTER_FAIL_UNDO_TIME_ADD 10
/* Some additional time. */
#define REDIS_CLUSTER_FAIL_UNDO_TIME_ADD 10
/* Some additional time. */
#define REDIS_CLUSTER_SLAVE_VALIDITY_MULT 10
/* Slave data validity. */
#define REDIS_CLUSTER_SLAVE_VALIDITY_MULT 10
/* Slave data validity. */
#define REDIS_CLUSTER_FAILOVER_AUTH_RETRY_MULT 1
/* Auth request retry time. */
#define REDIS_CLUSTER_FAILOVER_AUTH_RETRY_MULT 1
/* Auth request retry time. */
#define REDIS_CLUSTER_FAILOVER_DELAY 5
/* Seconds */
struct
clusterNode
;
struct
clusterNode
;
...
...
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