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

Method OnSendCheckpointAck

src/algorithm/learner.cpp:883–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883void Learner :: OnSendCheckpointAck(const CheckpointMsg & oCheckpointMsg)
884{
885 PLGHead("START flag %d", oCheckpointMsg.flag());
886
887 if (m_poCheckpointSender != nullptr && !m_poCheckpointSender->IsEnd())
888 {
889 if (oCheckpointMsg.flag() == CheckpointSendFileAckFlag_OK)
890 {
891 m_poCheckpointSender->Ack(oCheckpointMsg.nodeid(), oCheckpointMsg.uuid(), oCheckpointMsg.sequence());
892 }
893 else
894 {
895 m_poCheckpointSender->End();
896 }
897 }
898}
899
900CheckpointSender * Learner :: GetNewCheckpointSender(const nodeid_t iSendNodeID)
901{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected