MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / clusterSendFailoverAuth

Function clusterSendFailoverAuth

src/cluster.cpp:2926–2936  ·  view source on GitHub ↗

Send a FAILOVER_AUTH_ACK message to the specified node. */

Source from the content-addressed store, hash-verified

2924
2925/* Send a FAILOVER_AUTH_ACK message to the specified node. */
2926void clusterSendFailoverAuth(clusterNode *node) {
2927 clusterMsg buf[1];
2928 clusterMsg *hdr = (clusterMsg*) buf;
2929 uint32_t totlen;
2930
2931 if (!node->link) return;
2932 clusterBuildMessageHdr(hdr,CLUSTERMSG_TYPE_FAILOVER_AUTH_ACK);
2933 totlen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
2934 hdr->totlen = htonl(totlen);
2935 clusterSendMessage(node->link,(unsigned char*)buf,totlen);
2936}
2937
2938/* Send a MFSTART message to the specified node. */
2939void clusterSendMFStart(clusterNode *node) {

Callers 1

Calls 2

clusterBuildMessageHdrFunction · 0.85
clusterSendMessageFunction · 0.85

Tested by

no test coverage detected