MDEV-26166 replace log_write_up_to(LSN_MAX,...) with log_buffer_flush_to_disk()

Also, remove comparison lsn > flush/write lsn, prior to calling
log_write_up_to. The checks and early returns are part of this function.
This commit is contained in:
Vladislav Vaintroub 2021-07-16 11:27:41 +02:00
commit fc2ec25733
8 changed files with 8 additions and 17 deletions

View file

@ -699,15 +699,6 @@ public:
/** Shut down the redo log subsystem. */
void close();
/** Initiate a write of the log buffer to the file if needed.
@param flush whether to initiate a durable write */
inline void initiate_write(bool flush)
{
const lsn_t lsn= get_lsn();
if (!flush || get_flushed_lsn() < lsn)
log_write_up_to(lsn, flush);
}
};
/** Redo log system */