Skip to content

Commit

Permalink
Merge pull request #689 from MyonKeminta/fix-gc-doc
Browse files Browse the repository at this point in the history
Fix inaccurate statements about implementation of GC
  • Loading branch information
lilin90 authored Apr 26, 2018
2 parents e538186 + 16c805f commit 7b2b1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-guide/gc.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ DeleteRanges 通常在 drop table 这样的操作之后需要进行,用于删

### 3. Do GC

这一步把每一个 key 的 safe point 之前的数据和 Write 记录清除掉。有一个特例是,如果 safe point 之前的最后一个 Write 记录是 `Put`(即写入),那么该记录(及其对应的数据)不能被直接删除。否则,时间戳在 safe point 之后、该 key 的下一个版本之前的读取操作将无法读取到该数据。
这一步把每一个 key 的 safe point 之前的数据和 Write 记录清除掉。有一个特例是,如果在 safe point 之前的所有 `Put` 类型和 `Delete` 类型的 Write 记录中,最后一个记录是 `Put`(即写入),那么该记录(及其对应的数据)不能被直接删除。否则,时间戳在 safe point 之后、该 key 的下一个版本之前的读取操作将无法读取到该数据。

0 comments on commit 7b2b1e1

Please sign in to comment.