Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
472 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 Reply

0 votes
by (71.8m points)

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...