知识卡片
WAL先于数据页落盘
将修改追加到具有单调 LSN 的磁盘日志,日志缓冲必须按 LSN 顺序刷出。脏页写回前,先使对应更新日志稳定;向调用方确认提交前,刷到提交记录的 LSN。这样数据页可延后批量写回,崩溃后仍有操作可重放或撤销。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · Recovery
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Recovery · 查看原书依据
The WAL consists of log records. Every record has a unique, monotonically increasing log sequence number (LSN). Usually, the LSN is represented by an internal counter or a timestamp.
参考来源
- 位置:《Database Internals》Chapter 5. Transaction Processing and Recovery(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch05.html#idm46104532533144,段 105)
- 结论依据:第 92–108 段给出预写、顺序强制及提交边界。
- 原始内容:The WAL consists of log records. Every record has a unique, monotonically increasing log sequence number (LSN). Usually, the LSN is represented by an internal counter or a timestamp.