| 661 | } |
| 662 | |
| 663 | int 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 | |
| 674 | int PNode :: DropMaster(const int iGroupIdx) |
| 675 | { |
nothing calls this directly
no outgoing calls
no test coverage detected