mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-03-24 16:50:37 +08:00
remove useless hints
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
parent
d06e805544
commit
174028fc8a
@ -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 storage’s memory state like `RaftLocalState`, `RaftApplyState` and `RegionLocalState`. Also don’t 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.
|
||||
|
Loading…
Reference in New Issue
Block a user