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

Function clusterSendFailoverAuth

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

Send a FAILOVER_AUTH_ACK message to the specified node. */

Source from the content-addressed store, hash-verified

2866
2867/* Send a FAILOVER_AUTH_ACK message to the specified node. */
2868void clusterSendFailoverAuth(clusterNode *node) {
2869 clusterMsg buf[1];
2870 clusterMsg *hdr = (clusterMsg*) buf;
2871 uint32_t totlen;
2872
2873 if (!node->link) return;
2874 clusterBuildMessageHdr(hdr,CLUSTERMSG_TYPE_FAILOVER_AUTH_ACK);
2875 totlen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
2876 hdr->totlen = htonl(totlen);
2877 clusterSendMessage(node->link,(unsigned char*)buf,totlen);
2878}
2879
2880/* Send a MFSTART message to the specified node. */
2881void clusterSendMFStart(clusterNode *node) {

Callers 1

Calls 2

clusterBuildMessageHdrFunction · 0.85
clusterSendMessageFunction · 0.85

Tested by

no test coverage detected