MySQL Forums
Forum List  »  InnoDB

Re: Failed to start mysql due to start_lsn and ens_lsn issue
Posted by: Jakub Lopuszanski
Date: August 08, 2022 05:49AM

> I don't see any explicit fsync operation between (or inside) log_files_prepare_unused_file() which writes the header and log_mark_file_as_in_use() which renames the file

I've now found that log_files_prepare_unused_file() calls log_files_write_checkpoint_low() which calls log_checkpoint_header_write() which calls Log_file_handle::write() which calls Log_file_handle::do_io() which does `m_is_modified = true;`, and the destructor of Log_file_handle should call close() which in case of m_is_modified being true, should call fsync().

Could it be that the fsync() is gets ignored?
Do I get it right that you hold redo log directory on LVM?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Failed to start mysql due to start_lsn and ens_lsn issue
72
August 08, 2022 05:49AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.