Commit 42b9daae authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-26138 innodb_flush_log_at_trx_commit=3 doesn't flush

trx_flush_log_if_needed_low(): Do flush for both
innodb_flush_log_at_trx_commit=1 and
innodb_flush_log_at_trx_commit=3.

This is the 10.6 version of
10.2 commit 5f8651ac
which fixed a regression that had been introduced
in 2e814d47
(breaking 288eeb3a).
parent c35ac548
......@@ -1135,8 +1135,8 @@ static void trx_flush_log_if_needed_low(lsn_t lsn, trx_state_t trx_state)
if (log_sys.get_flushed_lsn() > lsn)
return;
bool flush= srv_file_flush_method != SRV_NOSYNC &&
srv_flush_log_at_trx_commit == 1;
const bool flush= srv_file_flush_method != SRV_NOSYNC &&
(srv_flush_log_at_trx_commit & 1);
if (trx_state == TRX_STATE_PREPARED)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment