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

Method OnComfirmAskForLearn

src/algorithm/learner.cpp:423–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void Learner :: OnComfirmAskForLearn(const PaxosMsg & oPaxosMsg)
424{
425 BP->GetLearnerBP()->OnComfirmAskForLearn();
426
427 PLGHead("START Msg.InstanceID %lu Msg.from_nodeid %lu", oPaxosMsg.instanceid(), oPaxosMsg.nodeid());
428
429 if (!m_oLearnerSender.Comfirm(oPaxosMsg.instanceid(), oPaxosMsg.nodeid()))
430 {
431 BP->GetLearnerBP()->OnComfirmAskForLearnGetLockFail();
432
433 PLGErr("LearnerSender comfirm fail, maybe is lag msg");
434 return;
435 }
436
437 PLGImp("OK, success comfirm");
438}
439
440int Learner :: SendLearnValue(
441 const nodeid_t iSendNodeID,

Callers

nothing calls this directly

Calls 2

OnComfirmAskForLearnMethod · 0.80

Tested by

no test coverage detected