summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorlinyi-xq <LY042522@gmail.com>2021-03-23 11:00:33 +0800
committerGitHub <noreply@github.com>2021-03-22 20:00:33 -0700
commit725762c48d6465f65f1b5ead4126a72674ce6a83 (patch)
tree6dffb05e831d2787ff3c17c9724650308f18c09b /src/cluster.h
parent6bf81eb7b102b5c772c887b862716370151cc197 (diff)
downloadredis-725762c48d6465f65f1b5ead4126a72674ce6a83.tar.gz
clusterState->mf_master_offset init offset change to -1 (#8651)
resolve cluster failover timeout when master repl_offset is 0
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 716c0d49c..ed1ad5c3a 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -168,7 +168,7 @@ typedef struct clusterState {
clusterNode *mf_slave; /* Slave performing the manual failover. */
/* Manual failover state of slave. */
long long mf_master_offset; /* Master offset the slave needs to start MF
- or zero if still not received. */
+ or -1 if still not received. */
int mf_can_start; /* If non-zero signal that the manual failover
can start requesting masters vote. */
/* The following fields are used by masters to take state on elections. */