| 197 | } |
| 198 | |
| 199 | void 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 | |
| 218 | void PNode :: RunProposeBatch() |
| 219 | { |
nothing calls this directly
no outgoing calls
no test coverage detected