mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-01-13 22:00:07 +08:00
change some comments
Signed-off-by: Connor <zbk602423539@gmail.com>
This commit is contained in:
parent
d945d6faf1
commit
b5316ae4d5
@ -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,
|
// 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 send RegionTaskApply task to region worker through ps.regionSched, also remember call ps.clearMeta
|
||||||
// and ps.clearExtraData to delete stale data
|
// and ps.clearExtraData to delete stale data
|
||||||
// Your Code Here (2B).
|
// Your Code Here (2C).
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,8 @@ type Raft struct {
|
|||||||
electionElapsed int
|
electionElapsed int
|
||||||
|
|
||||||
// leadTransferee is id of the leader transfer target when its value is not zero.
|
// 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)
|
// (Used in 3A leader transfer)
|
||||||
leadTransferee uint64
|
leadTransferee uint64
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user