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

Method SetMasterLease

src/node/pnode.cpp:663–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663int PNode :: SetMasterLease(const int iGroupIdx, const int iLeaseTimeMs)
664{
665 if (!CheckGroupID(iGroupIdx))
666 {
667 return Paxos_GroupIdxWrong;
668 }
669
670 m_vecMasterList[iGroupIdx]->SetLeaseTime(iLeaseTimeMs);
671 return 0;
672}
673
674int PNode :: DropMaster(const int iGroupIdx)
675{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected