MCPcopy Create free account
hub / github.com/F-Stack/f-stack / clusterSendMFStart

Function clusterSendMFStart

app/redis-6.2.6/src/cluster.c:2881–2891  ·  view source on GitHub ↗

Send a MFSTART message to the specified node. */

Source from the content-addressed store, hash-verified

2879
2880/* Send a MFSTART message to the specified node. */
2881void clusterSendMFStart(clusterNode *node) {
2882 clusterMsg buf[1];
2883 clusterMsg *hdr = (clusterMsg*) buf;
2884 uint32_t totlen;
2885
2886 if (!node->link) return;
2887 clusterBuildMessageHdr(hdr,CLUSTERMSG_TYPE_MFSTART);
2888 totlen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
2889 hdr->totlen = htonl(totlen);
2890 clusterSendMessage(node->link,(unsigned char*)buf,totlen);
2891}
2892
2893/* Vote for the node asking for our vote if there are the conditions. */
2894void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request) {

Callers 1

clusterCommandFunction · 0.85

Calls 2

clusterBuildMessageHdrFunction · 0.85
clusterSendMessageFunction · 0.85

Tested by

no test coverage detected