SetConfState would store the latest ConfState generated by ApplyConfChange.
(cs *raftpb.ConfState)
| 179 | |
| 180 | // SetConfState would store the latest ConfState generated by ApplyConfChange. |
| 181 | func (n *Node) SetConfState(cs *raftpb.ConfState) { |
| 182 | glog.Infof("Setting conf state to %+v\n", cs) |
| 183 | n.Lock() |
| 184 | defer n.Unlock() |
| 185 | n._confState = cs |
| 186 | } |
| 187 | |
| 188 | // DoneConfChange marks a configuration change as done and sends the given error to the |
| 189 | // config channel. |
no test coverage detected