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

Method ProposerSendSuccess

src/algorithm/learner.cpp:566–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void Learner :: ProposerSendSuccess(
567 const uint64_t llLearnInstanceID,
568 const uint64_t llProposalID)
569{
570 BP->GetLearnerBP()->ProposerSendSuccess();
571
572 PaxosMsg oPaxosMsg;
573
574 oPaxosMsg.set_msgtype(MsgType_PaxosLearner_ProposerSendSuccess);
575 oPaxosMsg.set_instanceid(llLearnInstanceID);
576 oPaxosMsg.set_nodeid(m_poConfig->GetMyNodeID());
577 oPaxosMsg.set_proposalid(llProposalID);
578 oPaxosMsg.set_lastchecksum(GetLastChecksum());
579
580 //run self first
581 BroadcastMessage(oPaxosMsg, BroadcastMessage_Type_RunSelf_First);
582}
583
584void Learner :: OnProposerSendSuccess(const PaxosMsg & oPaxosMsg)
585{

Callers

nothing calls this directly

Calls 1

ProposerSendSuccessMethod · 0.80

Tested by

no test coverage detected