Send a MFSTART message to the specified node. */
| 2879 | |
| 2880 | /* Send a MFSTART message to the specified node. */ |
| 2881 | void 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. */ |
| 2894 | void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request) { |
no test coverage detected