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

Method OnTimeout

src/algorithm/instance.cpp:779–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777///////////////////////////////
778
779void Instance :: OnTimeout(const uint32_t iTimerID, const int iType)
780{
781 if (iType == Timer_Proposer_Prepare_Timeout)
782 {
783 m_oProposer.OnPrepareTimeout();
784 }
785 else if (iType == Timer_Proposer_Accept_Timeout)
786 {
787 m_oProposer.OnAcceptTimeout();
788 }
789 else if (iType == Timer_Learner_Askforlearn_noop)
790 {
791 m_oLearner.AskforLearn_Noop();
792 }
793 else if (iType == Timer_Instance_Commit_Timeout)
794 {
795 OnNewValueCommitTimeout();
796 }
797 else
798 {
799 PLGErr("unknown timer type %d, timerid %u", iType, iTimerID);
800 }
801}
802
803////////////////////////////////
804

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected