| 402 | //////////////////////////////////////////// |
| 403 | |
| 404 | void 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 | |
| 423 | void Learner :: OnComfirmAskForLearn(const PaxosMsg & oPaxosMsg) |
| 424 | { |
nothing calls this directly
no test coverage detected