Skip to content

Commit

Permalink
Update text/0081-truncate.md
Browse files Browse the repository at this point in the history
Co-authored-by: Lei Zhao <[email protected]>
  • Loading branch information
longfangsong and youjiali1995 authored Dec 6, 2021
1 parent 07b8462 commit 382a10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0081-truncate.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ There are several steps to follow when doing truncate:

### 1. Wait all committed raft log are applied

We can just polling each region's `RegionInfo` in a method similar with [`Debugger::region_info`](https://github.com/tikv/tikv/blob/789c99666f2f9faaa6c6e5b021ac0cf7a76ae24e/src/server/debug.rs#L188) does, and wait for `commit_index` to be equal to `apply_index`.
We can just polling each region's `RegionInfo` in a method similar with [`Debugger::region_info`](https://github.com/tikv/tikv/blob/789c99666f2f9faaa6c6e5b021ac0cf7a76ae24e/src/server/debug.rs#L188) does, and wait for `apply_index` to be equal to `commit_index`.

### 2. Clean WriteCF and DefaultCF

Expand Down

0 comments on commit 382a10d

Please sign in to comment.