MCPcopy Create free account
hub / github.com/Tencent/phxpaxos / SendCheckpointEnd

Method SendCheckpointEnd

src/algorithm/learner.cpp:692–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692int Learner :: SendCheckpointEnd(
693 const nodeid_t iSendNodeID,
694 const uint64_t llUUID,
695 const uint64_t llSequence,
696 const uint64_t llCheckpointInstanceID)
697{
698 CheckpointMsg oCheckpointMsg;
699
700 oCheckpointMsg.set_msgtype(CheckpointMsgType_SendFile);
701 oCheckpointMsg.set_nodeid(m_poConfig->GetMyNodeID());
702 oCheckpointMsg.set_flag(CheckpointSendFileFlag_END);
703 oCheckpointMsg.set_uuid(llUUID);
704 oCheckpointMsg.set_sequence(llSequence);
705 oCheckpointMsg.set_checkpointinstanceid(llCheckpointInstanceID);
706
707 PLGImp("END, SendNodeID %lu uuid %lu sequence %lu cpi %lu",
708 iSendNodeID, llUUID, llSequence, llCheckpointInstanceID);
709
710 return SendMessage(iSendNodeID, oCheckpointMsg, Message_SendType_TCP);
711}
712
713int Learner :: SendCheckpoint(
714 const nodeid_t iSendNodeID,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected