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

Method GetNewCheckpointSender

src/algorithm/learner.cpp:900–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900CheckpointSender * Learner :: GetNewCheckpointSender(const nodeid_t iSendNodeID)
901{
902 if (m_poCheckpointSender != nullptr)
903 {
904 if (m_poCheckpointSender->IsEnd())
905 {
906 m_poCheckpointSender->join();
907 delete m_poCheckpointSender;
908 m_poCheckpointSender = nullptr;
909 }
910 }
911
912 if (m_poCheckpointSender == nullptr)
913 {
914 m_poCheckpointSender = new CheckpointSender(iSendNodeID, m_poConfig, this, m_poSMFac, m_poCheckpointMgr);
915 return m_poCheckpointSender;
916 }
917
918 return nullptr;
919}
920
921
922}

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected