summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-02-05 13:10:03 +0100
committerantirez <antirez@gmail.com>2014-02-05 13:10:03 +0100
commitb7402bcad58cfcc78beb3f7119aa556b87d985d1 (patch)
treed055a5f6be651f7824cf06a8a1496f559fa52152 /src/cluster.h
parent4cf0cd57192d07735a1ddd3aeb84151665929f5c (diff)
downloadredis-b7402bcad58cfcc78beb3f7119aa556b87d985d1.tar.gz
Cluster: force AUTH ACK on manual failover.
When a slave requests masters vote for a manual failover, the REQUEST_AUTH message is flagged in a special way in order to force the masters to give the authorization even if the master is not marked as failing.
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 52edbf780..cbda08987 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -220,6 +220,8 @@ typedef struct {
/* Message flags better specify the packet content or are used to
* provide some information about the node state. */
#define CLUSTERMSG_FLAG0_PAUSED (1<<0) /* Master paused for manual failover. */
+#define CLUSTERMSG_FLAG0_FORCEACK (1<<1) /* Give ACK to AUTH_REQUEST even if
+ master is up. */
/* ---------------------- API exported outside cluster.c -------------------- */
clusterNode *getNodeByQuery(redisClient *c, struct redisCommand *cmd, robj **argv, int argc, int *hashslot, int *ask);