简体   繁体   English

了解Mysql中的innodb_flush_log_at_trx_commit

[英]Understanding of innodb_flush_log_at_trx_commit in Mysql

Here is part of the definition for "innodb_flush_log_at_trx_commit". 这是“ innodb_flush_log_at_trx_commit”的定义的一部分。 If the value of innodb_flush_log_at_trx_commit is 0, the log buffer is written out to the log file once per second and the flush to disk operation is performed on the log file, but nothing is done at a transaction commit. 如果innodb_flush_log_at_trx_commit的值为0,则每秒将日志缓冲区写入日志文件一次,并在日志文件上执行磁盘刷新操作,但是在事务提交时不执行任何操作。

I am a little confused. 我有点困惑。 Are "the log buffer is written out to the log file" and "the flush to disk operation is performed on the log file" the same thing? “将日志缓冲区写出到日志文件”和“对日志文件执行磁盘刷新操作”是一样的吗? "the flush to disk operation is performed on the log file" means flush the log buffer to the log file on disk, correct? “对日志文件执行磁盘刷新操作”是指将日志缓冲区刷新到磁盘上的日志文件,对吗?

From my understanding, the key of your confusion is OS buffer. 据我了解,您困惑的关键是操作系统缓冲区。

在此处输入图片说明

Reference 参考

https://www.cnblogs.com/f-ck-need-u/p/9010872.html https://www.cnblogs.com/f-ck-need-u/p/9010872.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM