Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raftstore: update applied_index_term after snapshot (#10476)
* add test case Signed-off-by: Jay Lee <BusyJayLee@gmail.com> * raftstore: update applied_term after snapshot After applying snapshot applied_term should also be updated, otherwise it can produce snapshot with wrong term and cause panic in follower. Close #10225 Signed-off-by: Jay Lee <BusyJayLee@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
- Loading branch information
1 parent
bac538f
commit e271358
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters