Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/database/mysql/mysql-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ tag:

虽然性能得到提升,但是机器宕机,`page cache`里面的 binlog 会丢失。

为了安全起见,可以设置为`1`,表示每次提交事务都会执行`fsync`,就如同**binlog 日志刷盘流程**一样。
为了安全起见,可以设置为`1`,表示每次提交事务都会执行`fsync`,就如同**redo log 日志刷盘流程**一样。

最后还有一种折中方式,可以设置为`N(N>1)`,表示每次提交事务都`write`,但累积`N`个事务后才`fsync`。

Expand Down