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

Method SendCheckpointAck

src/algorithm/learner.cpp:866–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866int Learner :: SendCheckpointAck(
867 const nodeid_t iSendNodeID,
868 const uint64_t llUUID,
869 const uint64_t llSequence,
870 const int iFlag)
871{
872 CheckpointMsg oCheckpointMsg;
873
874 oCheckpointMsg.set_msgtype(CheckpointMsgType_SendFile_Ack);
875 oCheckpointMsg.set_nodeid(m_poConfig->GetMyNodeID());
876 oCheckpointMsg.set_uuid(llUUID);
877 oCheckpointMsg.set_sequence(llSequence);
878 oCheckpointMsg.set_flag(iFlag);
879
880 return SendMessage(iSendNodeID, oCheckpointMsg, Message_SendType_TCP);
881}
882
883void Learner :: OnSendCheckpointAck(const CheckpointMsg & oCheckpointMsg)
884{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected