Skip to content

Commit 89ff49a

Browse files
add supplementary auxiliary function usage examples (#18)
* Supplementary auxiliary function usage examples * Supplementary auxiliary function usage examples
1 parent b05e89a commit 89ff49a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/minigu/labs/lab1-1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ Watermark = 活跃事务最小 start_ts;无活跃事务则为最新提交时
330330
> `get_visible` 中:
331331
>
332332
> 1.`current`
333-
> 2. 若需回溯(条件同前),调用辅助函数;
333+
> 2. 若需回溯(条件同前),调用辅助函数 `MemTransaction::apply_deltas_for_read`,定义回调函数,根据 undo entry 的类型回溯数据
334334
> 3. 检查 tombstone;返回对象或错误。
335-
>
335+
>
336336
> `is_visible`:只返回布尔:对象非 tombstone 且版本满足可见条件。
337337
>
338338
> `check_write_conflict`:需要在所有写路径(创建点/边、删除点/边、属性更新)调用,用于保证 Serializable 隔离下的写写 / 读写冲突提前失败(现有代码已在这些路径中调用该函数占位)。

0 commit comments

Comments
 (0)