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

Method GetMasterWithVersion

src/node/pnode.cpp:643–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643const NodeInfo PNode :: GetMasterWithVersion(const int iGroupIdx, uint64_t & llVersion)
644{
645 if (!CheckGroupID(iGroupIdx))
646 {
647 return NodeInfo(nullnode);
648 }
649
650 return NodeInfo(m_vecMasterList[iGroupIdx]->GetMasterSM()->GetMasterWithVersion(llVersion));
651}
652
653const bool PNode :: IsIMMaster(const int iGroupIdx)
654{

Callers

nothing calls this directly

Calls 1

NodeInfoClass · 0.85

Tested by

no test coverage detected