Module cluster flags: initial vars / defines added.

This commit is contained in:
antirez
2018-09-19 11:20:52 +02:00
parent 0ff35370d2
commit 6a39ece652
5 changed files with 20 additions and 0 deletions

View File

@ -100,6 +100,13 @@ typedef struct clusterLink {
#define CLUSTERMSG_TYPE_MODULE 9 /* Module cluster API message. */
#define CLUSTERMSG_TYPE_COUNT 10 /* Total number of message types. */
/* Flags that a module can set in order to prevent certain Redis Cluster
* features to be enabled. Useful when implementing a different distributed
* system on top of Redis Cluster message bus, using modules. */
#define MODULE_CLUSTER_FLAG_NONE 0
#define MODULE_CLUSTER_FLAG_NO_FAILOVER (1<<1)
#define MODULE_CLUSTER_FLAG_NO_REDIRECTION (1<<2)
/* This structure represent elements of node->fail_reports. */
typedef struct clusterNodeFailReport {
struct clusterNode *node; /* Node reporting the failure condition. */