Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8a588ac1
Commit
8a588ac1
authored
May 28, 2014
by
antirez
Browse files
More trailing spaces in sentinel.c removed.
parent
efbe1739
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
8a588ac1
...
@@ -88,7 +88,7 @@ typedef struct sentinelAddr {
...
@@ -88,7 +88,7 @@ typedef struct sentinelAddr {
/* Failover machine different states. */
/* Failover machine different states. */
#define SENTINEL_FAILOVER_STATE_NONE 0 /* No failover in progress. */
#define SENTINEL_FAILOVER_STATE_NONE 0 /* No failover in progress. */
#define SENTINEL_FAILOVER_STATE_WAIT_START 1
/* Wait for failover_start_time*/
#define SENTINEL_FAILOVER_STATE_WAIT_START 1 /* Wait for failover_start_time*/
#define SENTINEL_FAILOVER_STATE_SELECT_SLAVE 2 /* Select slave to promote */
#define SENTINEL_FAILOVER_STATE_SELECT_SLAVE 2 /* Select slave to promote */
#define SENTINEL_FAILOVER_STATE_SEND_SLAVEOF_NOONE 3 /* Slave -> Master */
#define SENTINEL_FAILOVER_STATE_SEND_SLAVEOF_NOONE 3 /* Slave -> Master */
#define SENTINEL_FAILOVER_STATE_WAIT_PROMOTION 4 /* Wait slave to change role */
#define SENTINEL_FAILOVER_STATE_WAIT_PROMOTION 4 /* Wait slave to change role */
...
@@ -2875,7 +2875,7 @@ void sentinelCheckSubjectivelyDown(sentinelRedisInstance *ri) {
...
@@ -2875,7 +2875,7 @@ void sentinelCheckSubjectivelyDown(sentinelRedisInstance *ri) {
if (ri->last_ping_time)
if (ri->last_ping_time)
elapsed = mstime() - ri->last_ping_time;
elapsed = mstime() - ri->last_ping_time;
/* Check if we are in need for a reconnection of one of the
/* Check if we are in need for a reconnection of one of the
* links, because we are detecting low activity.
* links, because we are detecting low activity.
*
*
* 1) Check if the command link seems connected, was connected not less
* 1) Check if the command link seems connected, was connected not less
...
...
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