diff options
author | antirez <antirez@gmail.com> | 2014-02-05 13:10:03 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-02-05 13:10:03 +0100 |
commit | b7402bcad58cfcc78beb3f7119aa556b87d985d1 (patch) | |
tree | d055a5f6be651f7824cf06a8a1496f559fa52152 /src/cluster.h | |
parent | 4cf0cd57192d07735a1ddd3aeb84151665929f5c (diff) | |
download | redis-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.h | 2 |
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); |