Skip to content

Commit 7a70cc4

Browse files
committed
Save Mon Nov 14 12:35:01 AM CST 2022
1 parent 817c899 commit 7a70cc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

读书笔记/CMU 15-445:645 Database Systems (Fall 2021)/Lecture #16: Two-Phase Locking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ On its own, ==2PL is sufficient to **guarantee conflict serializability**==. ==I
4343

4444
> **Tips**:
4545
>
46-
> 实际上这是一种脏读。
46+
> 上图表示了朴素的 2PL 导致的级联回滚的情况,所以需要 S2PL。(实际上这是一种脏读)
4747
4848
There are also potential schedules that are serializable but would not be allowed by 2PL (locking can limit concurrency).
4949

读书笔记/CMU 15-445:645 Database Systems (Fall 2021)/Lecture #17: Timestamp Ordering Concurrency Control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ If *TS(T~i~ ) < TS(T~j~ )*, then one of the following three conditions must hold
193193
194194
3. ==T~i~ completes its Read phase before T~j~ completes its Read phase==, and ==T~i~ does not write to any object that is either read or written by T~j~== .
195195

196-
(WriteSet(Ti ) ∩ ReadSet(T j) = Ø and WriteSet(Ti ) ∩ WriteSet(Tj ) = Ø)
196+
(WriteSet(T~i~ ) ∩ ReadSet(T~j~) = Ø and WriteSet(T~i~ ) ∩ WriteSet(T~j~ ) = Ø)
197197

198198
<img src="https://littleneko.oss-cn-beijing.aliyuncs.com/img/image-20220313014335756.png" alt="image-20220313014335756" style="zoom:25%;" />
199199

0 commit comments

Comments
 (0)