remove useless hints

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
Connor1996 2020-04-28 16:38:10 +08:00 committed by Connor
parent d06e805544
commit 174028fc8a

View File

@ -226,8 +226,3 @@ Then due to the log compaction, Raft module maybe needs to send a snapshot. `Pee
Then the snapshot will reflect in the next Raft ready, so the task you should do is to modify the raft ready process to handle the case of snapshot. When you are sure to apply the snapshot, you can update the peer storages memory state like `RaftLocalState`, `RaftApplyState` and `RegionLocalState`. Also dont forget to persist these states to kvdb and raftdb and remove stale state from kvdb and raftdb. Besides, you also need to update
`PeerStorage.snapState` to `snap.SnapState_Applying` and send `runner.RegionTaskApply` task to region worker through `PeerStorage.regionSched` and wait until region worker finish.
> Hints:
>
> - If there are some committed entries to be executed in the apply worker, do not apply state, see `ReadyToHandlePendingSnap`.
> - Do not handle the next Raft ready before finishing applying snapshot.