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

Method RunMaster

src/node/pnode.cpp:199–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void PNode :: RunMaster(const Options & oOptions)
200{
201 for (auto & oGroupSMInfo : oOptions.vecGroupSMInfoList)
202 {
203 //check if need to run master.
204 if (oGroupSMInfo.bIsUseMaster)
205 {
206 if (!m_vecGroupList[oGroupSMInfo.iGroupIdx]->GetConfig()->IsIMFollower())
207 {
208 m_vecMasterList[oGroupSMInfo.iGroupIdx]->RunMaster();
209 }
210 else
211 {
212 PLImp("I'm follower, not run master damon.");
213 }
214 }
215 }
216}
217
218void PNode :: RunProposeBatch()
219{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected