Skip to content

Commit

Permalink
否则 -> 或者
Browse files Browse the repository at this point in the history
原文:Data file segments are append-only and otherwise immutable
这里的 and otherwise 和单用一个 otherwise 不同,这里表示的是并列关系,而非相反关系
结合语境,“只附加”和“不可变”也是更偏并列关系一点
  • Loading branch information
Zombo1296 committed Dec 24, 2019
1 parent 583167d commit f52cd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch3.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ $ cat database

***并发控制***

由于写操作是以严格顺序的顺序附加到日志中的,所以常见的实现选择是只有一个写入器线程。数据文件段是附加的,否则是不可变的,所以它们可以被多个线程同时读取。
由于写操作是以严格顺序的顺序附加到日志中的,所以常见的实现选择是只有一个写入器线程。数据文件段是附加的,或者是不可变的,所以它们可以被多个线程同时读取。

乍一看,只有追加日志看起来很浪费:为什么不更新文件,用新值覆盖旧值?但是只能追加设计的原因有几个:

Expand Down

0 comments on commit f52cd24

Please sign in to comment.