mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 18:51:20 +00:00
Modules Cluster API: node information struct and flags.
This commit is contained in:
@ -3825,6 +3825,13 @@ typedef struct moduleClusterReceiver {
|
||||
struct moduleClusterReceiver *next;
|
||||
} moduleClusterReceiver;
|
||||
|
||||
typedef struct moduleClusterNodeInfo {
|
||||
int flags;
|
||||
char ip[NET_IP_STR_LEN];
|
||||
int port;
|
||||
char master_id[40]; /* Only if flags & REDISMODULE_NODE_MASTER is true. */
|
||||
} mdouleClusterNodeInfo;
|
||||
|
||||
/* We have an array of message types: each bucket is a linked list of
|
||||
* configured receivers. */
|
||||
static moduleClusterReceiver *clusterReceivers[UINT8_MAX];
|
||||
|
Reference in New Issue
Block a user