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

Method ComfirmAskForLearn

src/algorithm/learner.cpp:404–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402////////////////////////////////////////////
403
404void Learner :: ComfirmAskForLearn(const nodeid_t iSendNodeID)
405{
406 BP->GetLearnerBP()->ComfirmAskForLearn();
407
408 PLGHead("START");
409
410 PaxosMsg oPaxosMsg;
411
412 oPaxosMsg.set_instanceid(GetInstanceID());
413 oPaxosMsg.set_nodeid(m_poConfig->GetMyNodeID());
414 oPaxosMsg.set_msgtype(MsgType_PaxosLearner_ComfirmAskforLearn);
415
416 PLGHead("END InstanceID %lu MyNodeID %lu", GetInstanceID(), oPaxosMsg.nodeid());
417
418 SendMessage(iSendNodeID, oPaxosMsg);
419
420 m_bIsIMLearning = true;
421}
422
423void Learner :: OnComfirmAskForLearn(const PaxosMsg & oPaxosMsg)
424{

Callers

nothing calls this directly

Calls 1

ComfirmAskForLearnMethod · 0.80

Tested by

no test coverage detected