mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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:
parent
a7d880f0b0
commit
fc2ec25733
8 changed files with 8 additions and 17 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue