change some comments

Signed-off-by: Connor <zbk602423539@gmail.com>
This commit is contained in:
Connor 2020-04-13 00:20:44 +08:00
parent d945d6faf1
commit b5316ae4d5
2 changed files with 3 additions and 2 deletions

View File

@ -314,7 +314,7 @@ func (ps *PeerStorage) ApplySnapshot(snapshot *eraftpb.Snapshot, kvWB *engine_ut
// Hint: things need to do here including: update peer storage state like raftState and applyState, etc,
// and send RegionTaskApply task to region worker through ps.regionSched, also remember call ps.clearMeta
// and ps.clearExtraData to delete stale data
// Your Code Here (2B).
// Your Code Here (2C).
return nil, nil
}

View File

@ -142,7 +142,8 @@ type Raft struct {
electionElapsed int
// leadTransferee is id of the leader transfer target when its value is not zero.
// Follow the procedure defined in raft thesis 3.10.
// Follow the procedure defined in section 3.10 of Raft phd thesis.
// (https://web.stanford.edu/~ouster/cgi-bin/papers/OngaroPhD.pdf)
// (Used in 3A leader transfer)
leadTransferee uint64