mirror of
https://github.com/fluencelabs/redis
synced 2025-07-01 18:01:33 +00:00
Module cluster flags: initial vars / defines added.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user