Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
465 views
in Technique[技术] by (71.8m points)

undo log是什么时候落盘的?

网上大部分说的都是redo log的落盘时机,但是没说undo log,想知道undo log是什么时候落盘的?落盘机制是怎样的?是否也有参数控制落盘时机?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

undo log就是记录的旧版本,在插入这条记录的时候就已经落盘了。

而插入记录的时候首先把记录写在insert buffer里面,由master线程在事务commit时(默认)落盘,改策略通过innodb_flush_log_at_trx_commit参数配置


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...