mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
Modules Cluster API: make node IDs pointers constant.
This commit is contained in:
@ -56,7 +56,7 @@ void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request);
|
||||
void clusterUpdateState(void);
|
||||
int clusterNodeGetSlotBit(clusterNode *n, int slot);
|
||||
sds clusterGenNodesDescription(int filter);
|
||||
clusterNode *clusterLookupNode(char *name);
|
||||
clusterNode *clusterLookupNode(const char *name);
|
||||
int clusterNodeAddSlave(clusterNode *master, clusterNode *slave);
|
||||
int clusterAddSlot(clusterNode *n, int slot);
|
||||
int clusterDelSlot(int slot);
|
||||
@ -75,7 +75,7 @@ void clusterDelNode(clusterNode *delnode);
|
||||
sds representClusterNodeFlags(sds ci, uint16_t flags);
|
||||
uint64_t clusterGetMaxEpoch(void);
|
||||
int clusterBumpConfigEpochWithoutConsensus(void);
|
||||
void moduleCallClusterReceivers(char *sender_id, uint64_t module_id, uint8_t type, const unsigned char *payload, uint32_t len);
|
||||
void moduleCallClusterReceivers(const char *sender_id, uint64_t module_id, uint8_t type, const unsigned char *payload, uint32_t len);
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Initialization
|
||||
@ -932,7 +932,7 @@ void clusterDelNode(clusterNode *delnode) {
|
||||
}
|
||||
|
||||
/* Node lookup by name */
|
||||
clusterNode *clusterLookupNode(char *name) {
|
||||
clusterNode *clusterLookupNode(const char *name) {
|
||||
sds s = sdsnewlen(name, CLUSTER_NAMELEN);
|
||||
dictEntry *de;
|
||||
|
||||
@ -2621,7 +2621,7 @@ void clusterSendModule(clusterLink *link, uint64_t module_id, uint8_t type,
|
||||
*
|
||||
* The function returns C_OK if the target is valid, otherwise C_ERR is
|
||||
* returned. */
|
||||
int clusterSendModuleMessageToTarget(char *target, uint64_t module_id, uint8_t type, unsigned char *payload, uint32_t len) {
|
||||
int clusterSendModuleMessageToTarget(const char *target, uint64_t module_id, uint8_t type, unsigned char *payload, uint32_t len) {
|
||||
clusterNode *node = NULL;
|
||||
|
||||
if (target != NULL) {
|
||||
|
Reference in New Issue
Block a user